Class: Bloops::Sound

Inherits:
Object
  • Object
show all
Defined in:
ext/ruby/rubyext.c

Instance Method Summary collapse

Instance Method Details

#arp ⇒ Object

#arp= ⇒ Object

#aspeed ⇒ Object

#aspeed= ⇒ Object

#attack ⇒ Object

#attack= ⇒ Object

#decay ⇒ Object

#decay= ⇒ Object

#dslide ⇒ Object

#dslide= ⇒ Object

#freq ⇒ Object

#freq= ⇒ Object

#hpf ⇒ Object

#hpf= ⇒ Object

#hsweep ⇒ Object

#hsweep= ⇒ Object

#initialize_copy(other) ⇒ Object



107
108
109
110
111
112
113
114
115
116
# File 'ext/ruby/rubyext.c', line 107

VALUE
rb_bloops_sound_copy(VALUE self, VALUE other)
{
  bloopsaphone *P;
  bloopsaphone *O;
  Data_Get_Struct(self, bloopsaphone, P);
  Data_Get_Struct(other, bloopsaphone, O);
  bloops_sound_copy(P, O);
  return Qnil;
}

#limit ⇒ Object

#limit= ⇒ Object

#lpf ⇒ Object

#lpf= ⇒ Object

#lsweep ⇒ Object

#lsweep= ⇒ Object

#phase ⇒ Object

#phase= ⇒ Object

#psweep ⇒ Object

#psweep= ⇒ Object

#punch ⇒ Object

#punch= ⇒ Object

#repeat ⇒ Object

#repeat= ⇒ Object

#reset ⇒ Object



126
127
128
129
130
131
132
133
# File 'ext/ruby/rubyext.c', line 126

VALUE
rb_bloops_reset(VALUE self)
{
  bloopsaphone *P;
  Data_Get_Struct(self, bloopsaphone, P);
  bloops_sound_copy(P, Pplain);
  return self;
}

#resonance ⇒ Object

#resonance= ⇒ Object

#slide ⇒ Object

#slide= ⇒ Object

#square ⇒ Object

#square= ⇒ Object

#sustain ⇒ Object

#sustain= ⇒ Object

#sweep ⇒ Object

#sweep= ⇒ Object

#test ⇒ Object



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'ext/ruby/rubyext.c', line 135

VALUE
rb_bloops_test(VALUE self)
{
  bloops *B;
  bloopsatrack *T;
  bloopsaphone *P;

  Data_Get_Struct(self, bloopsaphone, P);

  B = bloops_new();
  bloops_tempo(B, 120);
  T = bloops_track2(B, P, "C");
  T->notes[0].tone = 'n';
  memcpy(&T->params, &P->params, sizeof(bloopsaparams));
  bloops_play(B);
  bloops_track_destroy(T);
  bloops_destroy(B);

  return self;
}

#to_s ⇒ Object



118
119
120
121
122
123
124
# File 'ext/ruby/rubyext.c', line 118

VALUE
rb_bloops_sound_str(VALUE self)
{
  bloopsaphone *P;
  Data_Get_Struct(self, bloopsaphone, P);
  return rb_str_new2(bloops_sound_str(P));
}

#type ⇒ Object



156
157
158
159
160
161
162
# File 'ext/ruby/rubyext.c', line 156

VALUE
rb_bloops_get_type(VALUE self)
{
  bloopsaphone *P;
  Data_Get_Struct(self, bloopsaphone, P);
  return INT2NUM((int)P->params.type);
}

#type=(type) ⇒ Object



164
165
166
167
168
169
170
171
# File 'ext/ruby/rubyext.c', line 164

VALUE
rb_bloops_set_type(VALUE self, VALUE type)
{
  bloopsaphone *P;
  Data_Get_Struct(self, bloopsaphone, P);
  P->params.type = (unsigned char)NUM2INT(type);
  return type;
}

#vdelay ⇒ Object

#vdelay= ⇒ Object

#vibe ⇒ Object

#vibe= ⇒ Object

#volume ⇒ Object

#volume= ⇒ Object

#vspeed ⇒ Object

#vspeed= ⇒ Object