Module Duplex.Applications.NotesOnWheels

Notes On Wheels (N.O.W) is an arpeggiating step sequencer.

View the README.md (github)

Functions

__init (VarArg) Constructor method
start_app () inherited from Application
select_midi_port (port_idx) initialize MIDI input
midi_callback (message) receive MIDI from device
schedule_output (seq_step, mask_mode) schedule output, simple way to reduce number of pattern writes: remember the last step / mode - if either change, output immediately
output_sequence (seq_step, mask_mode, stream, force) output sequence to pattern
on_idle () inherited from Application
on_new_document () inherited from Application
disable_write_mode () Update display of write mode
on_keypress (key) inherited from Application
create_empty_sequence () create or empty sequence
_attach_to_instrument (new_song) attach to selected instrument
detect_slices () detect number of slices, and if using "white keys"
to_sliced_pitch_range (int_val, invert) convert the pitch range (normally 0-121) to the sliced sample range (for example, middle C and every white key for the next two octaves)
change_mode (mode) when mode has changed
shift (amount) shift sequence in either direction if we have a pending offset, update that one as well
_build_app () inherited from Application
reset_adjustments () reset adjustments will apply the default adjustment for each parameter, and update the display (dedicated/multi-control)

Tables

default_options These are the default options for the application
available_mappings These are the available mappings for the application
self._controls all UIComponent references are kept here create tables in advance, the rest ad hoc

Fields

self.step_focus the step which was last modified (used for non-global output)
self.number_of_slices set to something else than 0 when instrument is sliced (tracked in realtime via the sample_mappings property)
self.lower_note remember where the sample mappings start/end (tracked in realtime via the sample_mappings property)
self.white_keys_only detect if sample mappings are 'white keys only' (tracked in realtime via the sample_mappings property)
self.accept_note_input true while the sequencer accepts incoming notes PC keyboard: when shift modifier is pressed
self.has_received_input true, once we input using shift modifier
self.midi_pressed_keys MIDI keys: remember pressed keys
self.midi_max_keys MIDI keys: max number of simultaneously pressed keys
self.scheduled_step use these for scheduled output (assign a special value to make them output first time)
self._blink track playback progress in 'blinks'
self.write_button_state the lit state of buttons
self.track_changed track changed?
self.touched when using the 'latch' write method, this will indicate that no control has yet been touched
self._playing the song is playing?
self.realtime_pos realtime position
self.autolearn when auto-learning is enabled
self.just_entered_autolearn (bool) temporary flag set when entering autolearn mode
self.seq (NOW_Sequence) internal sequence representation
self.last_line the pattern-line last detected by idle loop
self.line_offset the current line offset
self.pending_line_offset the upcoming pattern's line offset
self.pending_seq_pos sequence-pos of upcoming pattern
self.mode (enum) the current mode
self.write_method (enum) write method
self.global_mode (bool) global mode
self.fill_mode (bool) fill mode
self.write_mode (bool) write mode
self.midi_in (renoise.Midi.MidiDevice)


Functions

__init (VarArg)
Constructor method

Parameters:

  • VarArg )

See also:

start_app ()
inherited from Application

Returns:

    bool or nil

See also:

select_midi_port (port_idx)
initialize MIDI input

Parameters:

  • port_idx
midi_callback (message)
receive MIDI from device

Parameters:

  • message
schedule_output (seq_step, mask_mode)
schedule output, simple way to reduce number of pattern writes: remember the last step / mode - if either change, output immediately

Parameters:

  • seq_step (int), step to output (can be nil)
  • mask_mode (enum), restrict to specific mode (can be nil)
output_sequence (seq_step, mask_mode, stream, force)
output sequence to pattern

Parameters:

  • seq_step (int), step to output (can be nil)
  • mask_mode (enum), restrict to specific mode (can be nil)
  • stream (bool), produce output in 'short bursts'
  • force (bool), force output (e.g. when mode buttons are held)
on_idle ()
inherited from Application

See also:

on_new_document ()
inherited from Application

See also:

disable_write_mode ()
Update display of write mode
on_keypress (key)
inherited from Application

Parameters:

  • key (table)

See also:

create_empty_sequence ()
create or empty sequence
_attach_to_instrument (new_song)
attach to selected instrument

Parameters:

  • new_song
detect_slices ()
detect number of slices, and if using "white keys"
to_sliced_pitch_range (int_val, invert)
convert the pitch range (normally 0-121) to the sliced sample range (for example, middle C and every white key for the next two octaves)

Parameters:

  • int_val (number) the value to scale
  • invert (bool) when the value is sent to a control
change_mode (mode)
when mode has changed

Parameters:

  • mode (int, MODEPITCH,MODEVELOCITY,etc)
shift (amount)
shift sequence in either direction if we have a pending offset, update that one as well

Parameters:

  • amount (int)
_build_app ()
inherited from Application

Returns:

    bool

See also:

reset_adjustments ()
reset adjustments will apply the default adjustment for each parameter, and update the display (dedicated/multi-control)

Tables

default_options
These are the default options for the application

Fields:

  • write_method
  • description
  • on_change
  • items
  • Latch: touch to start output
  • Write: constant output
available_mappings
These are the available mappings for the application

Fields:

  • choose_mode
self._controls
all UIComponent references are kept here create tables in advance, the rest ad hoc

Fields:

  • multi_sliders
  • pitch_sliders
  • velocity_sliders
  • offset_sliders
  • gate_sliders
  • retrig_sliders
  • pos_buttons

Fields

self.step_focus
the step which was last modified (used for non-global output)
self.number_of_slices
set to something else than 0 when instrument is sliced (tracked in realtime via the sample_mappings property)
self.lower_note
remember where the sample mappings start/end (tracked in realtime via the sample_mappings property)
self.white_keys_only
detect if sample mappings are 'white keys only' (tracked in realtime via the sample_mappings property)
self.accept_note_input
true while the sequencer accepts incoming notes PC keyboard: when shift modifier is pressed
self.has_received_input
true, once we input using shift modifier
self.midi_pressed_keys
MIDI keys: remember pressed keys
self.midi_max_keys
MIDI keys: max number of simultaneously pressed keys
self.scheduled_step
use these for scheduled output (assign a special value to make them output first time)
self._blink
track playback progress in 'blinks'
self.write_button_state
the lit state of buttons
self.track_changed
track changed? check via idle loop
self.touched
when using the 'latch' write method, this will indicate that no control has yet been touched
self._playing
the song is playing? check via idle loop
self.realtime_pos
realtime position
self.autolearn
when auto-learning is enabled
self.just_entered_autolearn
(bool) temporary flag set when entering autolearn mode
self.seq
(NOW_Sequence) internal sequence representation
self.last_line
the pattern-line last detected by idle loop
self.line_offset
the current line offset
self.pending_line_offset
the upcoming pattern's line offset
self.pending_seq_pos
sequence-pos of upcoming pattern
self.mode
(enum) the current mode
self.write_method
(enum) write method
self.global_mode
(bool) global mode
self.fill_mode
(bool) fill mode
self.write_mode
(bool) write mode
self.midi_in
(renoise.Midi.MidiDevice)
generated by LDoc 1.4.2