note_gateway

the purpose of this class is to communicate with the sound-engine.

its main concerns are: - starting, stopping, pausing the engine - sending notes - sending controlling messages

class roqba.note_gateway.NoteGateway(settings, behaviour)[source]
drum_hub_gen()[source]

generator method that sends notes to all drum voices

according to present state

hub_gen()[source]

generator method that sends notes to all melodic voices

according to the present state

mute_voice(vid, val)[source]

sends a message to mute/unmute a voice to pd

use vid=drums to mute/unmute the drums

pause()[source]

blocks new messages and turns off sound-production

pd_send_drum_note(voice, vol, pan, ctl)[source]

sends a note-message for a drum-voice

pd_send_duration(voice_id, val)[source]

send out the duration for a given voice

pd_send_note(voice_id, msg)[source]

send out a single note

pd_send_wavetable(voice_id, wavetable)[source]

send out the duration for a given voice

send_voice_adsr(voice, adsr)[source]

sends a adsr-message for a voice

send_voice_pan(voice, pan)[source]

sends a pan-message for a voice

send_voice_peak_level(voice, peak_level)[source]

sends a peak_level-message for a voice

send_voice_volume(voice, val)[source]

sends a volume message for a voice

use values from 0 to 1

set_slide_msecs(voice_id, msecs)[source]

sends a message containing the general slide-time in millisecs

set_slide_msecs_for_all_voices(msecs)[source]

sends a message containing the general slide-time in millisecs

set_slide_to_0()[source]

this method bypasses the slide functionality

by setting slide-duration to 0

set_transpose(val)[source]
stop()[source]

destroys the puredata-sender object

stop_all_notes()[source]

sends a stop message to all active voices

stop_notes_of_voice(vid)[source]

sends the stop message to a specified voice

unpause()[source]

turns on sound-production and lets messages flow again