Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
xasopheno committed Jan 21, 2023
1 parent f4400df commit 2ce1bfa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
6 changes: 1 addition & 5 deletions parser/src/socool.lalrpop
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Operation: Term = {
<op1: Operation> ">" "FitGain" <op2: ComposeOperation> => {
unimplemented!()
},

// TODO: Revisit Focus/Lens
<op1: Operation> ">" "@" <name: Name> <op2: ComposeOperation> => {
Term::Op(
Expand Down Expand Up @@ -229,11 +230,6 @@ Index: Index = {
<index: Index> "|" <term: Composeable> => Index::IndexAndTerm {index: Box::new(index), term},
}

SuperCompose: Term = {
<o: ComposeOperation> => o,
<o: Generator> => Term::Gen(o)
}

ComposeOperation: Term = {
<terms: Pipe<Composeable>> => {
Term::Op(Compose { operations: handle_fit_length_recursively(terms) })
Expand Down
4 changes: 2 additions & 2 deletions src/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use weresocool::interpretable::InputType::Language;
use weresocool::manager::prepare_render_outside;

pub fn demo() -> Result<(), Error> {
// let render_voices = prepare_render_outside(Language(DEMO), None);
// play_once(render_voices?, "demo.socool".to_string())?;
let render_voices = prepare_render_outside(Language(DEMO), None);
play_once(render_voices?, "demo.socool".to_string())?;
todo!();
Ok(())
}
Expand Down
12 changes: 6 additions & 6 deletions src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ const DEFAULT_SOCOOL: &str = indoc! {"
{ f: 311.127, l: 1, g: 1/3, p: 0 }
thing1 = {
O[
(1/1, 2, 1, 1),
(1/1, 0, 1, -1),
Overlay [
{1/1, 2, 1, 1},
{1/1, 0, 1, -1},
]
| Seq [
Fm 1, Fm 9/8, Fm 5/4
]
}
thing2 = {
O[
(1/1, 2, 1, 1),
(1/1, 0, 1, -1),
Overlay [
{1/1, 2, 1, 1},
{1/1, 0, 1, -1},
]
| Seq [
Fm 3/4
Expand Down

0 comments on commit 2ce1bfa

Please sign in to comment.