<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi <div>I am very new to PD and DSP concepts.</div><div>So this will be hopelessly, awfully, basic :)</div><div><br></div><div>I have just started chapter 3 of 'The theory and technique of electronic music'</div><div>which is excellent</div><div><br></div><div>However it raises a million questions in my head...... one of which is <b>h</b><b>ow do I create an oscillator myself?</b></div><div><br></div><div>Its really bugging me everytime I create an example from the book. I feel I need to understand the fundamentals of how the basic objects are created too.</div><div><br></div><div>It seems too easy for me to just use the phasor object provided,</div><div><br></div><div>So I thought I would struggle through it and try to work it out.</div><div><br></div><div>This is how I am thinking about it.</div><div>If I want to create a sawtooth oscillator then this is just a ramp function i.e. a number that increases by 1 each time.</div><div>therefore if I use a simple float that, that adds 1 each time and a modulus % object to cap it, then I will have my repeating ramp wave :)</div><div><br></div><div><b>However I am triggering it by the metro object which is way too slow, how can I send a bang to the float object say every sample? or alot quicker than one millisecond?</b></div><div><br></div><div>My thinking is if I could speed up the bangs to a sample level I would then have more scope to then actually tune it, and create the shape I want. However I am sure to do this well would require working at a higher sample rate, but I am not really sure how to proceed.</div><div><br></div><div>Below is my appalling attempt :) I use the number box to change pitch.</div><div><br></div><div>Any guidance appreciated</div><div>Cheers</div><div>Geoff</div><div><br></div><div><br></div><div><br></div><div>#N canvas 325 62 681 388 10;</div><div>#X obj 119 69 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1</div><div>-1;</div><div>#X obj 121 96 f;</div><div>#X obj 181 116 + 1;</div><div>#X obj 115 17 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1</div><div>-1;</div><div>#X obj 127 238 dac~;</div><div>#X obj 118 46 metro 1;</div><div>#X floatatom 187 163 5 0 0 0 - - -;</div><div>#X obj 115 160 %;</div><div>#X obj 114 199 /;</div><div>#X connect 0 0 1 0;</div><div>#X connect 1 0 2 0;</div><div>#X connect 1 0 7 0;</div><div>#X connect 2 0 1 1;</div><div>#X connect 3 0 5 0;</div><div>#X connect 5 0 0 0;</div><div>#X connect 6 0 7 1;</div><div>#X connect 6 0 8 1;</div><div>#X connect 7 0 8 0;</div><div>#X connect 8 0 4 0; </div></body></html>