Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| with-superdirt [2023/12/20 16:19] – [Update startup.scd file] steve.wang | with-superdirt [2024/06/06 07:24] (current) – steve.wang | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Example of using Konduktiva with SuperDirt through Helper Functions ====== | ====== Example of using Konduktiva with SuperDirt through Helper Functions ====== | ||
| - | **Warning: | ||
| + | **Overview: ** This tutorial will teach you how to use SuperDirt with Konduktiva. Installation instructions for SuperDirt is also provided here. | ||
| + | |||
| + | **Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https:// | ||
| + | |||
| + | The link below will explain what SuperDirt is but following the installation instructions in the link is **NOT** recommended. | ||
| + | |||
| + | [[https:// | ||
| ====== Install Super Dirt Samples ===== | ====== Install Super Dirt Samples ===== | ||
| One way is to run this inside supercollider: | One way is to run this inside supercollider: | ||
| Line 25: | Line 31: | ||
| ====== Inform Konduktiva of Super Dirt Samples Location ===== | ====== Inform Konduktiva of Super Dirt Samples Location ===== | ||
| - | Update superDirtSamplesPath variable: | + | |
| + | Check if // | ||
| + | |||
| + | Manually update | ||
| < | < | ||
| - | superDirtSamplesPath | + | e.superDirtPath |
| </ | </ | ||
| WARNING: Change user to your username. | WARNING: Change user to your username. | ||
| Line 71: | Line 80: | ||
| ); | ); | ||
| </ | </ | ||
| + | ====== Playing music With Supercollider ===== | ||
| + | |||
| + | Open Supercollider and ensure you have Konduktiva loaded to K and any example MusicalEnvironment. Next run this code to hear some drumb noises: | ||
| + | <code javascript> | ||
| + | K.setupSuperDirtPlayer(e,' | ||
| + | K.simpleSamplePattern (e, ' | ||
| + | K.simpleRhythmPattern (e, | ||
| + | { | ||
| + | voice: ' | ||
| + | patternName: | ||
| + | patternLength: | ||
| + | IOIs: [1,1,1,1], | ||
| + | bools: [true, | ||
| + | } | ||
| + | ) | ||
| + | e.players.kick.rhythmMap = ' | ||
| + | e.players.kick.maskMap = ' | ||
| + | e.play(' | ||
| + | </ | ||
| + | It should sound something like this: | ||
| + | {{ : | ||
| + | |||
| + | Next to hear more sounds run this code: | ||
| + | <code javascript> | ||
| + | K.setupSuperDirtPlayer(e,' | ||
| + | K.simpleSamplePattern (e, ' | ||
| + | testHat = new K.RhythmPattern(' | ||
| + | testHat.add(e) | ||
| + | e.players.hat.rhythmMap = ' | ||
| + | e.players.hat.maskMap = ' | ||
| + | e.play(' | ||
| + | </ | ||
| + | This sound should be added: | ||
| + | {{ : | ||
| + | |||
| + | Run this to hear 2 more sounds: | ||
| + | <code javascript> | ||
| + | K.setupSuperDirtPlayer(e,' | ||
| + | K.simpleSamplePattern (e, ' | ||
| + | testClap = new K.RhythmPattern (' | ||
| + | testClap.add(e) | ||
| + | e.players.clap.rhythmMap = ' | ||
| + | e.players.clap.maskMap = ' | ||
| + | e.play(' | ||
| + | |||
| + | K.setupSuperDirtPlayer(e,' | ||
| + | K.simpleSamplePattern (e, ' | ||
| + | testTom = new K.RhythmPattern (' | ||
| + | testTom.add(e) | ||
| + | e.players.tom.rhythmMap = ' | ||
| + | e.players.tom.maskMap = ' | ||
| + | e.play(' | ||
| + | </ | ||
| + | These two sounds should be added. | ||
| + | {{ : | ||
| + | {{ : | ||
| + | |||
| + | All four together shoulkd sound like this: | ||
| + | {{ : | ||