Skip to content

Commit

Permalink
Merge pull request #6 from AlexanderARodin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
AlexanderARodin authored Jan 28, 2024
2 parents e3e8fd5 + 24ab289 commit af2b719
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/test_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,33 @@ impl TestView {
ui.horizontal( |ui| {
let btnN = ui.button( "None" );
if btnN.clicked(){
self.applySetup( "None", None );
let setup = "[AudioSource]\nName = 'None'";
self.applySetup( setup, None );
}
let btnS = ui.button( "SimpleSynth" );
if btnS.clicked(){
self.applySetup( "SimpleSynth", None );
let setup = "[AudioSource]\nName = 'Simple'";
self.applySetup( setup, None );
}
let btnRA = ui.button( "RustySynt - Strings" );
if btnRA.clicked(){
self.applySetup( "RustySynt", Some(SF_STRINGS) );
let setup = "[AudioSource]\nName = 'RustySynth'";
self.applySetup( setup, Some(SF_STRINGS) );
}
let btnRB = ui.button( "RustySynt - Piano" );
if btnRB.clicked(){
self.applySetup( "RustySynt", Some(SF_PIANO) );
let setup = "[AudioSource]\nName = 'RustySynth'";
self.applySetup( setup, Some(SF_PIANO) );
}
let btnRA = ui.button( "Sequencer:Simple" );
if btnRA.clicked(){
let setup = "[AudioSource]\nName = 'Sequencer'\n[AudioSource.Sequencer]\nMainVoice = 'Simple'";
self.applySetup( setup, None );
}
let btnRA = ui.button( "Sequencer:RustySynt - Strings" );
if btnRA.clicked(){
self.applySetup( "Sequencer:RustySynt", Some(SF_STRINGS) );
let setup = "[AudioSource]\nName = 'Sequencer'\n[AudioSource.Sequencer]\nMainVoice = 'RustySynth'";
self.applySetup( setup, Some(SF_STRINGS) );
}
});
ui.separator();
Expand Down

0 comments on commit af2b719

Please sign in to comment.