SunVox
Constants
Class methods
Closes a slot. Raises exception if the slot is closed or something goes wrong.
Connect a module src to a module dest.
Disconnect a module src from a module dest.
Is the song over and the end has been reached?
Find a module in a slot by name
Finds the pattern in slot by name
The current line the playhead is at
THe current line the play head is at in a fractional form (not sure how this works) https://warmplace.ru/soft/sunvox/sunvox_lib.php#sv_get_current_line2
Gets the current output signal level
Gets the debug log messages
TODO: Parse the color Get the color of a module in 0xBBGGRR format.
Get the name of a module's controller.
Get the value of a modules controller.
Get the curve from a module
Get module's finetune values.
TODO: Parse the flags Get the flags set on a module
A list of all the inputs a module has.
The number of module inputs.
Gets the name of a module.
A list of all the outputs a module has.
The number of module outputs.
TODO: Not sure if this works right, and not sure how to check if it does.... Maybe try to output to WAV or something.... Get the raw audio output values for a module.
Get the x, y positon of a module.
Get the number of controllers a module has.
The number of modules in slot
Gets the number of patterns in a slot
Get the event data, seperated by tracks.
Gets the number of lines in a pattern
Gets the pattern's name
Get the number of track in the pattern.
Gets the pattern's starting line.
Gets the pattern's height.
Gets the BPM of the song in slot
Get the length of the song in seconds
The total length in ticks of the song in slots.
The total song length in lines of slot.
Gets the name of the song in slot
Number of lines executed in a second in the song.
Loads a filename into a slot.
Load a module from a file. File can be sunsynth, xi, wav, or aiff.
Create a new module in slot. Returns the number of the new module.
Opens a slot
Mute/Unmute the pattern.
Pauses the playback at the current line.
Plays the current song from the current line.
Plays the current song from the beginning.
Remove the module module_num in slot.
Returns whether or not a song will repeat when the end is reached.
Resumes playback from a paused state.
Loads a file into a sampler. File must be xi, wav, or aiff.
Sends an event to SunVox. Can be used to send notes, change ctl values, or set note effects. A module_num of 0 causes no effect, so any module you would like to actually use must have 1 added to it
Sends an event to SunVox. Can be used to send notes, change ctl values, or set note effects. A module_num of 0 causes no effect, so any module you would like to actually use must have 1 added to it
Sends an event to SunVox. Can be used to send notes, change ctl values, or set note effects. A module_num of 0 causes no effect, so any module you would like to actually use must have 1 added to it
Changes how SunVox processes send_event. Instead of playing the event as soon as it's called, this allows send_event to be delayed by a number of ticks. When setting set to false it will reset the timing method back to immediate. When used timestamp should generally be SunVox.ticks + (SunVox.ticks_per_second/1000 * delay_milliseconds)
TODO: Do I need to Pointer.malloc here?
Set the curve data of a module
Sets whether or not a song will repeat when the end is reached.
Jumps the current position of the playhead to a line number.
Starts up the SunVox Engine. Hooks at_exit to ensure stop_engine is run on close
Stops the current song from playing. 2 calls will stop all the synths and sounds.
Shuts down the engine.
The current tick
How many ticks happen per second
Honestly, no idea how this one works. Seems like it should be useful if someone who isn't me wants to figure it out lol: https://warmplace.ru/soft/sunvox/sunvox_lib.php#sv_get_time_map Good Luck!
Sets the output volume of the slot.