Compare commits
9 Commits
6959d9917a
...
multitrack
| Author | SHA1 | Date | |
|---|---|---|---|
|
46241cce5f
|
|||
|
f413c43919
|
|||
|
1a679693d3
|
|||
|
690468d0ab
|
|||
|
12132b2798
|
|||
|
20fe694a8f
|
|||
|
a9efa652ef
|
|||
|
6e7b07ab28
|
|||
|
2f17df8064
|
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
resources/** filter=lfs diff=lfs merge=lfs -text
|
||||||
12
.pre-commit-config.yaml
Normal file
12
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v2.3.0
|
||||||
|
hooks:
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- repo: https://github.com/codespell-project/codespell
|
||||||
|
rev: v2.4.1
|
||||||
|
hooks:
|
||||||
|
- id: codespell
|
||||||
18
.woodpecker/code_tests.yaml
Normal file
18
.woodpecker/code_tests.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
steps:
|
||||||
|
- name: Clippy linter
|
||||||
|
image: rust:1.91.1-bullseye
|
||||||
|
commands:
|
||||||
|
- rustup component add clippy
|
||||||
|
- cargo clippy
|
||||||
|
- name: Rust fmt
|
||||||
|
image: rust:1.91.1-bullseye
|
||||||
|
commands:
|
||||||
|
- rustup component add rustfmt
|
||||||
|
- cargo fmt --check
|
||||||
|
- name: Unit tests
|
||||||
|
image: rust:1.91.1-bullseye
|
||||||
|
commands:
|
||||||
|
- cargo test
|
||||||
8
.woodpecker/pre_commit_test.yaml
Normal file
8
.woodpecker/pre_commit_test.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
steps:
|
||||||
|
- name: Pre commit validation
|
||||||
|
image: codeberg.org/sp1thas/woodpecker-ci-pre-commit-runner
|
||||||
|
settings:
|
||||||
|
args: "--all-files"
|
||||||
8
Cargo.lock
generated
8
Cargo.lock
generated
@@ -162,19 +162,15 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "syn"
|
name = "syn"
|
||||||
version = "2.0.110"
|
version = "2.0.111"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a99801b5bd34ede4cf3fc688c5919368fea4e4814a4664359503e6015b280aea"
|
checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
"unicode-ident",
|
"unicode-ident",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "termix"
|
|
||||||
version = "0.1.0"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unicode-ident"
|
name = "unicode-ident"
|
||||||
version = "1.0.22"
|
version = "1.0.22"
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
[package]
|
|
||||||
name = "termix"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2024"
|
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
members = ["engine", "lib"]
|
members = ["engine", "lib"]
|
||||||
|
|
||||||
[dependencies]
|
[workspace.dependencies]
|
||||||
|
|||||||
18
LICENSE
18
LICENSE
@@ -2,17 +2,17 @@ MIT License
|
|||||||
|
|
||||||
Copyright (c) 2025 badhouseplants
|
Copyright (c) 2025 badhouseplants
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||||
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||||
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
||||||
following conditions:
|
following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial
|
The above copyright notice and this permission notice shall be included in all copies or substantial
|
||||||
portions of the Software.
|
portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||||
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
||||||
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||||
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# termix
|
# termix
|
||||||
|
[](https://ci.badhouseplants.net/repos/19)
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
use lib::{self, metadata::Metadata, track::Track};
|
use lib::{self, metadata::Metadata, track::Track};
|
||||||
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
let mut current_project = lib::project::Project {
|
||||||
let mut current_project = lib::project::Project{
|
|
||||||
name: "test".to_string(),
|
name: "test".to_string(),
|
||||||
tracks: None,
|
tracks: None,
|
||||||
regions: None,
|
regions: None,
|
||||||
current_sample: 0
|
current_sample: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
let track = Track{
|
let track = Track {
|
||||||
metadata: Metadata::new("test".to_string()),
|
metadata: Metadata::new("test".to_string()),
|
||||||
track_type: lib::track::TrackType::Audio,
|
track_type: lib::track::TrackType::Audio,
|
||||||
active: true
|
active: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
current_project.tracks = Some(vec![track]);
|
current_project.tracks = Some(vec![track]);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
pub mod metadata;
|
pub mod metadata;
|
||||||
|
|
||||||
|
pub mod project;
|
||||||
pub mod region;
|
pub mod region;
|
||||||
pub mod track;
|
pub mod track;
|
||||||
pub mod project;
|
|
||||||
|
|||||||
BIN
resources/audio/session.flac
(Stored with Git LFS)
Normal file
BIN
resources/audio/session.flac
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
resources/audio/session.mp3
(Stored with Git LFS)
Normal file
BIN
resources/audio/session.mp3
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
resources/audio/session.wav
(Stored with Git LFS)
Normal file
BIN
resources/audio/session.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
fn main() {
|
|
||||||
println!("Hello, world!");
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user