You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A note can be placed in the center (panning=0) or moved to just the left
(panning=1) or right (panning=-1) channels. Fractional panning values
place it partially in both channels.
//| """Construct a Note object, with a frequency in Hz, and optional amplitude (volume), waveform, envelope, tremolo (volume change) and bend (frequency change).
62
+
//| """Construct a Note object, with a frequency in Hz, and optional panning, waveform, envelope, tremolo (volume change) and bend (frequency change).
62
63
//|
63
64
//| If waveform or envelope are `None` the synthesizer object's default waveform or envelope are used.
Copy file name to clipboardExpand all lines: shared-bindings/synthio/Synthesizer.c
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@
44
44
//| self,
45
45
//| *,
46
46
//| sample_rate: int = 11025,
47
+
//| channel_count: int = 1,
47
48
//| waveform: Optional[ReadableBuffer] = None,
48
49
//| envelope: Optional[Envelope] = None,
49
50
//| ) -> None:
@@ -56,13 +57,15 @@
56
57
//| and do not support advanced features like tremolo or vibrato.
57
58
//|
58
59
//| :param int sample_rate: The desired playback sample rate; higher sample rate requires more memory
60
+
//| :param int channel_count: The number of output channels (1=mono, 2=stereo)
59
61
//| :param ReadableBuffer waveform: A single-cycle waveform. Default is a 50% duty cycle square wave. If specified, must be a ReadableBuffer of type 'h' (signed 16 bit)
60
62
//| :param Optional[Envelope] envelope: An object that defines the loudness of a note over time. The default envelope, `None` provides no ramping, voices turn instantly on and off.
0 commit comments