Skip to content

Rust library for generating NSL (NGEN Scripting Language) scripts for the Spektro Audio NGEN.

Notifications You must be signed in to change notification settings

SpektroAudio/ngen_nsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngen_nsl

About ngen_nsl

ngen_nsl is Rust library for generating NSL (NGEN Scripting Language) scripts for the Spektro Audio NGEN.

For more information about NGEN and NSL, visit https://spektroaudio.com/ngen.

Examples

use ngen_nsl::*;
fn main() {
    let mut script = NSLScript::new();

    // Add commands to the script
    script.add_command(Commands::Set(step_pitch(0), constant(36))); // Set the pitch of the first step to 36
    script.add_command(Commands::Set(step_velocity(0), constant(100))); // Set the velocity of the first step to 100
    script.add_command(Commands::End); // End the script


    println!("Commands added to the script: {}", script.commands.len());

    let code = script.code();
    println!("Converted script: {:?}", code);

    let path = "output/path/test.nsl";
    script.export_hex(path);

}

To run the included examples (after cloning the repository), use the following command:

cargo run --example example_name (where example_name is the name of the example you want to run).


Spektro Audio
@spektroaudio
spektroaudio.com

About

Rust library for generating NSL (NGEN Scripting Language) scripts for the Spektro Audio NGEN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages