• Please stop embedding files/images from Discord. Discord has anti-hotlinking logic in place that breaks links to Discord hosted files and images when linked to from anywhere outside of Discord. There are a multitude of file/image hosting sites you can use instead.

    (more info here)

Search results

  1. Wedge of Cheese

    The prepare method also calls the prepare method on each of the Device's inputs (similar to the...

    The prepare method also calls the prepare method on each of the Device's inputs (similar to the way getValue calls getValue on all the inputs). For many devices, this would be all the prepare method does, but for some it would have to do more.
  2. Wedge of Cheese

    The prepare method would be called on the output device before each call to its getValue method.

    The prepare method would be called on the output device before each call to its getValue method.
  3. Wedge of Cheese

    First thing we do is add a second method to the Device interface, like so: interface Device{...

    First thing we do is add a second method to the Device interface, like so: interface Device{ public double getValue(); public void prepare(); }
  4. Wedge of Cheese

    Well you could do that too, but I have a more elegant solution which is more robust (i.e. if you...

    Well you could do that too, but I have a more elegant solution which is more robust (i.e. if you decide you want to add another waveform, you can just add it without having to go back and change the number you divide by). And that solution is...
  5. Wedge of Cheese

    Well, you could do it that way, and it would avoid the issue, while being negligibly less...

    Well, you could do it that way, and it would avoid the issue, while being negligibly less efficient. And, if you were having two entirely separate instruments, that would probably be the way to go. However, I was talking about having two different waveforms in the same instrument (a la ptvoice).
  6. Wedge of Cheese

    Also, I demand an explanation of the connection between Ramsay Bolton and a... *wince* cheese...

    Also, I demand an explanation of the connection between Ramsay Bolton and a... *wince* cheese grater.
  7. Wedge of Cheese

    Nope, the screwy bit is the fact that, since multiple devices are taking input from the...

    Nope, the screwy bit is the fact that, since multiple devices are taking input from the oscillator, the oscillator's getValue() method gets called twice per sample frame, resulting in it cycling through its state twice as fast as it should. I'll share my solution whenever I go postcrazy again...
  8. Wedge of Cheese

    Well, the unusual feature of the block diagram is that it would no longer be a tree - there...

    Well, the unusual feature of the block diagram is that it would no longer be a tree - there would be TWO devices taking input from the oscillator instead of just one (unless you had a separate oscillator for each waveform). I'll give you a hint: the way the Java program would fail is that the...
  9. Wedge of Cheese

    Yes, and, if you added the waveforms like that, then what unusual feature might a block diagram...

    Yes, and, if you added the waveforms like that, then what unusual feature might a block diagram of the synthesizer have which would cause the corresponding Java program not to work (at least with the paradigm I described earlier)?
  10. Wedge of Cheese

    http://www.mediafire.com/?ta1vof1c5ybyrr2

    http://www.mediafire.com/?ta1vof1c5ybyrr2
  11. Wedge of Cheese

    I actually do, or at least I used to (I kinda stopped like a year or so ago). Hang on...

    I actually do, or at least I used to (I kinda stopped like a year or so ago). Hang on...
  12. Wedge of Cheese

    There were at least two. There was "post yer orgs" and "using music".

    There were at least two. There was "post yer orgs" and "using music".
  13. Wedge of Cheese

    You were viewing ancient threads.

    You were viewing ancient threads.
  14. Wedge of Cheese

    Having nostalgia day or something?

    Having nostalgia day or something?
  15. Wedge of Cheese

    aaaaand... I just realized that, for some reason, I don't have those ptcops that I gave to Noxid...

    aaaaand... I just realized that, for some reason, I don't have those ptcops that I gave to Noxid for use in Hungry Mahins saved on my computer. It seems that they now only exist in pttune format.
  16. Wedge of Cheese

    What did you dream about last night?

    I think you win the thread.
  17. Wedge of Cheese

    It's on my own profile cuz I'm morbidly obese.

    It's on my own profile cuz I'm morbidly obese.
  18. Wedge of Cheese

    http://www.mediafire.com/?hbe56uyn7zzkeia

    http://www.mediafire.com/?hbe56uyn7zzkeia
  19. Wedge of Cheese

    Tually, since it seems ur online again, I'll drop a hint now. Consider what you might do if you...

    Tually, since it seems ur online again, I'll drop a hint now. Consider what you might do if you wanted a synthesizer that plays two different waveforms simultaneously, at the same frequency.
  20. Wedge of Cheese

    For this particular synthesizer, this scheme works perfectly. However, there's a subtle flaw...

    For this particular synthesizer, this scheme works perfectly. However, there's a subtle flaw which makes it not work as expected for some synthesizers. I'm going to stop here for now and see if you can find said flaw on your own. A hint or two may be dropped along the way.
  21. Wedge of Cheese

    To use the synthesizer would then be a matter of, at each sample frame, setting the inputs to...

    To use the synthesizer would then be a matter of, at each sample frame, setting the inputs to their correct values, and then calling output.getValue() and doing something with the result (probably either playing it or writing it to a wav file).
  22. Wedge of Cheese

    So, to set up the synthesizer, we'd do the following: Input pitch=new Input(); Input volume=new...

    So, to set up the synthesizer, we'd do the following: Input pitch=new Input(); Input volume=new Input(); Oscillator osc=new Oscillator(pitch); Multiplier output=new Multiplier(osc,volume);
  23. Wedge of Cheese

    We'd also need some way of giving inputs to the synthesizer, for which we have the very simple...

    We'd also need some way of giving inputs to the synthesizer, for which we have the very simple Input device, which allows the programmer to freely modify the value it outputs: class Input implements Device{ public double value; public double getValue(){return value;} }
  24. Wedge of Cheese

    The code for the Devices themselves (not specific to this particular synthesizer) would be the...

    The code for the Devices themselves (not specific to this particular synthesizer) would be the following: interface Device{ public double getValue(); } class Multiplier implements Device{ private Device[] inputs; public Multiplier(Device... inputs){this.inputs=inputs;} public double...
  25. Wedge of Cheese

    Let's see how this would work with the first synthesizer we diagrammed.

    Let's see how this would work with the first synthesizer we diagrammed.
Back
Top