Class: Bloops::Sound

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

Instance Method Summary collapse

Instance Method Details

#arpObject

#arp=Object

#aspeedObject

#aspeed=Object

#attackObject

#attack=Object

#decayObject

#decay=Object

#dslideObject

#dslide=Object

#freqObject

#freq=Object

#hpfObject

#hpf=Object

#hsweepObject

#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;
}

#limitObject

#limit=Object

#lpfObject

#lpf=Object

#lsweepObject

#lsweep=Object

#phaseObject

#phase=Object

#psweepObject

#psweep=Object

#punchObject

#punch=Object

#repeatObject

#repeat=Object

#resetObject



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;
}

#resonanceObject

#resonance=Object

#slideObject

#slide=Object

#squareObject

#square=Object

#sustainObject

#sustain=Object

#sweepObject

#sweep=Object

#testObject



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_sObject



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));
}

#typeObject



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;
}

#vdelayObject

#vdelay=Object

#vibeObject

#vibe=Object

#volumeObject

#volume=Object

#vspeedObject

#vspeed=Object