Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisppaul committed May 25, 2024
1 parent b129371 commit b0ba60c
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 12 deletions.
Binary file modified lib/wellen.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ import wellen.dsp.*;
*
* note that samples can either be played once or looped. if a sample is played once it must be rewound before it
* can be played again. also note that a sample buffer can be cropped with `set_in()` + `set_out()`.
*
* samples can be loaded from external sources as *raw* bytes with `loadBytes(byte[])`. the raw format needs to be in
* the 32bit IEEE float format and only contain a single channel ( i.e mono ). tools like
* [Audacity](https://www.audacityteam.org) or [FFmpeg](https://ffmpeg.org) can be used to generate it. e.g the latter
* can be used to convert sound file to *raw* bytes with the following command where `INPUT_FILE`, `OUTPUT_FILE` and
* `$OUTPUT_SAMPLE_RATE` need to be adjusted:
*
* `ffmpeg -i $INPUT_FILE -f f32le -acodec pcm_f32le -ac 1 -ar $OUTPUT_SAMPLE_RATE "$OUTPUT_FILE.raw"`
*
*/
Sampler fSampler;
void settings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ void addMasterEffects() {
if (mToneEngine == null) {
return;
}
RRStompBox mDistortion = new RRStompBox();
mDistortion.setpreset(RRStompBox.PRESET_ODIE);
wellen.extra.rakarrack.RRStompBox mDistortion = new wellen.extra.rakarrack.RRStompBox();
mDistortion.setpreset(wellen.extra.rakarrack.RRStompBox.PRESET_ODIE);
mToneEngine.add_effect(mDistortion);
Reverb mReverb = new Reverb();
mToneEngine.add_effect(mReverb);
Expand Down
Binary file modified processing-library/wellen/library/wellen.jar
Binary file not shown.
Binary file modified processing-library/wellen/resources/teilchen.raw
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ public class ExampleDSP07Sampler extends PApplet {
* can be played again. also note that a sample buffer can be cropped with `set_in()` + `set_out()`.
*
* samples can be loaded from external sources as *raw* bytes with `loadBytes(byte[])`. the raw format needs to be in
* the 32bit IEEE float format and only contain a single channel ( i.e mono ). tools like
* the 32bit IEEE float format and only contain a single channel ( i.e mono ). tools like
* [Audacity](https://www.audacityteam.org) or [FFmpeg](https://ffmpeg.org) can be used to generate it. e.g the latter
* can be used to convert sound file to *raw* bytes with the following command where `INPUT_FILE`, `OUTPUT_FILE` and
* `OUTPUT_SAMPLLE_RATE` need to be adjusted:
*
* `ffmpeg -i $INPUT_FILE -f f32le -acodec pcm_f32le -ac 1 -ar $OUTPUT_SAMPLLE_RATE "$OUTPUT_FILE.raw"`
* `$OUTPUT_SAMPLE_RATE` need to be adjusted:
*
* `ffmpeg -i $INPUT_FILE -f f32le -acodec pcm_f32le -ac 1 -ar $OUTPUT_SAMPLE_RATE "$OUTPUT_FILE.raw"`
*
*/

private Sampler fSampler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import wellen.ToneEngineDSP;
import wellen.dsp.Gain;
import wellen.dsp.Reverb;
import wellen.extra.rakarrack.RRStompBox;

public class TechniqueBasics09ModTracker extends PApplet {

Expand Down Expand Up @@ -62,8 +61,8 @@ private void addMasterEffects() {
return;
}

RRStompBox mDistortion = new RRStompBox();
mDistortion.setpreset(RRStompBox.PRESET_ODIE);
wellen.extra.rakarrack.RRStompBox mDistortion = new wellen.extra.rakarrack.RRStompBox();
mDistortion.setpreset(wellen.extra.rakarrack.RRStompBox.PRESET_ODIE);
mToneEngine.add_effect(mDistortion);

Reverb mReverb = new Reverb();
Expand Down
9 changes: 9 additions & 0 deletions src/wellen/examples/DSP/ExampleDSP07Sampler.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ public class ExampleDSP07Sampler extends PApplet {
*
* note that samples can either be played once or looped. if a sample is played once it must be rewound before it
* can be played again. also note that a sample buffer can be cropped with `set_in()` + `set_out()`.
*
* samples can be loaded from external sources as *raw* bytes with `loadBytes(byte[])`. the raw format needs to be in
* the 32bit IEEE float format and only contain a single channel ( i.e mono ). tools like
* [Audacity](https://www.audacityteam.org) or [FFmpeg](https://ffmpeg.org) can be used to generate it. e.g the latter
* can be used to convert sound file to *raw* bytes with the following command where `INPUT_FILE`, `OUTPUT_FILE` and
* `$OUTPUT_SAMPLE_RATE` need to be adjusted:
*
* `ffmpeg -i $INPUT_FILE -f f32le -acodec pcm_f32le -ac 1 -ar $OUTPUT_SAMPLE_RATE "$OUTPUT_FILE.raw"`
*
*/

private Sampler fSampler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import wellen.ToneEngineDSP;
import wellen.dsp.Gain;
import wellen.dsp.Reverb;
import wellen.extra.rakarrack.RRStompBox;

public class TechniqueBasics09ModTracker extends PApplet {

Expand Down Expand Up @@ -62,8 +61,8 @@ private void addMasterEffects() {
return;
}

RRStompBox mDistortion = new RRStompBox();
mDistortion.setpreset(RRStompBox.PRESET_ODIE);
wellen.extra.rakarrack.RRStompBox mDistortion = new wellen.extra.rakarrack.RRStompBox();
mDistortion.setpreset(wellen.extra.rakarrack.RRStompBox.PRESET_ODIE);
mToneEngine.add_effect(mDistortion);

Reverb mReverb = new Reverb();
Expand Down
Binary file modified wellen.zip
Binary file not shown.

0 comments on commit b0ba60c

Please sign in to comment.