Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live reloading development workflow #4

Open
Boscop opened this issue Jul 11, 2021 · 1 comment
Open

Live reloading development workflow #4

Boscop opened this issue Jul 11, 2021 · 1 comment

Comments

@Boscop
Copy link

Boscop commented Jul 11, 2021

Some ideas regarding the live reloading development workflow.

Other relevant links:
https://github.com/Michael-F-Bryan/plugins_in_rust
https://adventures.michaelfbryan.com/posts/plugins-in-rust/

Btw, someone also implemented a UGen in Rust:
http://www.andrewchristophersmith.com/2015/01/01/implementing-a-supercollider-external-in-rust/
https://github.com/andrewcsmith/vox_box_supercollider

@Boscop
Copy link
Author

Boscop commented Jul 11, 2021

Btw, sorceress seems to work already inside evcxr, I just tried it in PowerShell on Win 10:

> cargo install evcxr_repl
> evcxr
Welcome to evcxr. For help, type :help
>> :dep sorceress = "*"
>> use sorceress::{server::{self, Result, Server}, synthdef::{encoder::encode_synth_defs, SynthDef}, ugen};
>> let server = Server::connect("127.0.0.1:57110")?;
>> let sine_wave = SynthDef::new("sine_wave", |_| { ugen::Out::ar().channels(ugen::Pan2::ar().input(ugen::SinOsc::ar().freq(220))) });
>> let encoded_synthdef = encode_synth_defs(vec![sine_wave]);
>> server.send_sync(server::SynthDefRecv::new(&encoded_synthdef))?;
>> server.send(server::SynthNew::new("sine_wave", 0))?;
>> server.reset()?;
>>

Then SC played the sine wave until I entered server.reset()?; :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant