Skip to content

Commit

Permalink
adding separate rate field to Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
heuermh committed Jan 2, 2010
1 parent b076c44 commit 31c416f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion AkaiMpc60.ck
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

class Sample extends IntProcedure
{
1.0 => float rate;
0.6 => float maxGain;

SndBuf buf => dac;
Expand All @@ -33,7 +34,7 @@ class Sample extends IntProcedure
{
0 => buf.pos;
(value / 127.0) * maxGain => buf.gain;
1.0 => buf.rate;
rate => buf.rate;
}
}

Expand Down
3 changes: 2 additions & 1 deletion EmuDrumulator.ck
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

class Sample extends IntProcedure
{
1.0 => float rate;
0.8 => float maxGain;

SndBuf buf => dac;
Expand All @@ -33,7 +34,7 @@ class Sample extends IntProcedure
{
0 => buf.pos;
(value / 127.0) * maxGain => buf.gain;
1.0 => buf.rate;
rate => buf.rate;
}
}

Expand Down
3 changes: 2 additions & 1 deletion OberheimDmx.ck
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

class Sample extends IntProcedure
{
1.0 => float rate;
0.8 => float maxGain;

SndBuf buf => dac;
Expand All @@ -33,7 +34,7 @@ class Sample extends IntProcedure
{
0 => buf.pos;
(value / 127.0) * maxGain => buf.gain;
1.0 => buf.rate;
rate => buf.rate;
}
}

Expand Down
3 changes: 2 additions & 1 deletion RolandCr78.ck
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

class Sample extends IntProcedure
{
1.0 => float rate;
1.0 => float maxGain;

SndBuf buf => dac;
Expand All @@ -33,7 +34,7 @@ class Sample extends IntProcedure
{
0 => buf.pos;
(value / 127.0) * maxGain => buf.gain;
1.0 => buf.rate;
rate => buf.rate;
}
}

Expand Down
1 change: 1 addition & 0 deletions RolandTr606.ck
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

class Sample extends IntProcedure
{
1.0 => float rate;
0.8 => float maxGain;

SndBuf buf => dac;
Expand Down
3 changes: 2 additions & 1 deletion RolandTr808.ck
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

class Sample extends IntProcedure
{
1.0 => float rate;
1.0 => float maxGain;

SndBuf buf => dac;
Expand All @@ -33,7 +34,7 @@ class Sample extends IntProcedure
{
0 => buf.pos;
(value / 127.0) * maxGain => buf.gain;
1.0 => buf.rate;
rate => buf.rate;
}
}

Expand Down
3 changes: 2 additions & 1 deletion RolandTr909.ck
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

class Sample extends IntProcedure
{
1.0 => float rate;
0.8 => float maxGain;

SndBuf buf => dac;
Expand All @@ -33,7 +34,7 @@ class Sample extends IntProcedure
{
0 => buf.pos;
(value / 127.0) * maxGain => buf.gain;
1.0 => buf.rate;
rate => buf.rate;
}
}

Expand Down

0 comments on commit 31c416f

Please sign in to comment.