Buffer

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph cluster_builtins { graph [label=builtins]; node [color=1]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } subgraph "cluster_supriya.nonrealtime" { graph [label="supriya.nonrealtime"]; node [color=2]; "supriya.nonrealtime.Buffer.Buffer" [URL="../api/supriya/nonrealtime/Buffer.html#supriya.nonrealtime.Buffer.Buffer", color=black, fontcolor=white, label=Buffer, target=_top]; "supriya.nonrealtime.SessionObject.SessionObject" [URL="../api/supriya/nonrealtime/SessionObject.html#supriya.nonrealtime.SessionObject.SessionObject", label="Session\nObject", shape=oval, style=bold, target=_top]; "supriya.nonrealtime.SessionObject.SessionObject" -> "supriya.nonrealtime.Buffer.Buffer"; } subgraph "cluster_supriya.system" { graph [label="supriya.system"]; node [color=3]; "supriya.system.SupriyaObject.SupriyaObject" [URL="../api/supriya/nonrealtime/../system/SupriyaObject.html#supriya.system.SupriyaObject.SupriyaObject", label="Supriya\nObject", target=_top]; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.nonrealtime.SessionObject.SessionObject"; }

class supriya.nonrealtime.Buffer.Buffer(session, session_id, buffer_group=None, channel_count=None, frame_count=1, duration=None, start_offset=None, file_path=None, starting_frame=None)[source]

A non-realtime buffer.


Attributes Summary

buffer_group
channel_count
close
copy_from
copy_to
duration
file_path
fill
fill_via_chebyshev
fill_via_sine_1
fill_via_sine_2
fill_via_sine_3
frame_count
normalize
read
session_id
set
set_contiguous
start_offset
starting_frame
stop_offset
write
zero

Special methods

(SupriyaObject).__repr__()

Return repr(self).


Methods

close(offset=None)[source]
copy_from(source_buffer_id, frame_count=None, source_starting_frame=None, target_starting_frame=None, offset=None)[source]
copy_to(target_buffer_id, frame_count=None, source_starting_frame=None, target_starting_frame=None, offset=None)[source]
fill(index_count_value_triples=None, offset=None)[source]
fill_via_chebyshev(amplitudes, as_wavetable=True, should_normalize=True, should_clear_first=True, offset=None)[source]
fill_via_sine_1(amplitudes, as_wavetable=True, should_clear_first=True, should_normalize=True, offset=None)[source]
fill_via_sine_2(amplitudes, frequencies, as_wavetable=True, should_clear_first=True, should_normalize=True, offset=None)[source]
fill_via_sine_3(amplitudes, frequencies, phases, as_wavetable=True, should_clear_first=True, should_normalize=True, offset=None)[source]
normalize(as_wavetable=None, buffer_id=None, new_maximum=1.0, offset=None)[source]
read(file_path, channel_indices=None, frame_count=None, leave_open=None, starting_frame_in_buffer=None, starting_frame_in_file=None, offset=None)[source]
set(index_value_pairs=None, offset=None)[source]
set_contiguous(index_values_pairs=None, offset=None)[source]
write(file_path, frame_count=None, header_format='aiff', leave_open=False, sample_format='int24', starting_frame=None, offset=None)[source]
zero(offset=None)[source]

Class & static methods

static (SessionObject).require_offset(function)

Read-only properties

buffer_group
channel_count
duration
file_path
frame_count
(SessionObject).session
session_id
start_offset
starting_frame
stop_offset