strickyak / jerboa-attiny85-mod-synth

Modular Synthesizer using an ATtiny85 chip for each module.
MIT License
28 stars 5 forks source link

Comment + 2 Questions #2

Open schollz opened 1 year ago

schollz commented 1 year ago

Hi Strick Yak,

This project of yours is extraordinary. I've admired it for years. I've finally just got around to tinkering with it and I'm having a blast. I made some bytebeat modules and some sample drum playing modules (with reverse effects even!). And it was SO easy, you've done so much of the hard part already I just wrote ~50 lines of code and some converters to get up and running with everything.

That is my comment - I also have two questions:

My first question is: would you be interested in a PR? I'm happy to push back whatever I get going. No problem if not, I'm happy to just tinker away myself and make my own amusement :)

My second question is, how does this calculation come about:

    // Use 6:   16MHz / 64 => 250kHz.    
    // 250kHz / 13 => 19,230 samples per sec; nyquist 9615 Hz

I understand the clock is set to 16 Mhz, but where does the 64 and the 13 come from? I believe you that its 19.23 khz, but I'd be super interested in the origin of those magic numbers for my own edification.

In any case, thanks for the incredible source of musical joy and expression!

strickyak commented 10 months ago

Zack, sorry I missed your question back in March. I'm so glad you had success, and were able to write your own code!

I'm starting to refresh the design -- more the physical manifestation, than the fundamental idea -- and hope to make some circuit boards that will be more reliable than the bread boards. I'll try to let you know about our progress. If you want to be included, and you don't mind being in a list with 6 to 12 others, send me your email address, to @.***

The 13 comes from the chapter in the ATtiny85 documentation on the Digital-to-Analog converter. There is a lower and a higher resolution mode. The lower resolution is just 8 bytes. That's what we use. It takes 13 cycles to produce a result. The higher take more cycles.

I don't remember the 64. It's probably in the same chapter.

Sorry again for the delay! strick

On Mon, Mar 6, 2023 at 9:17 PM Zack @.***> wrote:

Hi Strick Yak,

This project of yours is extraordinary. I've admired it for years. I've finally just got around to tinkering with it and I'm having a blast. I made some bytebeat modules and some sample drum playing modules (with reverse effects even!). And it was SO easy, you've done so much of the hard part already I just wrote ~50 lines of code and some converters to get up and running with everything.

This is my comment - I also have two questions:

My first question is: would you be interested in a PR? I'm happy to push back whatever I get going. No problem if not, I'm happy to just tinker away myself and make my own amusement :)

My second question is, how does this calculation come about:

// Use 6:   16MHz / 64 => 250kHz.
// 250kHz / 13 => 19,230 samples per sec; nyquist 9615 Hz

I understand the clock is set to 16 Mhz, but where does the 64 and the 13 come from? I believe you that its 19.23 khz, but I'd be super interested in the origin of those magic numbers for my own edification.

In any case, thanks for the incredible source of musical joy and expression!

— Reply to this email directly, view it on GitHub https://github.com/strickyak/jerboa-attiny85-mod-synth/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAR6MH6Q2O46NNQHZHLFYLW23AFFANCNFSM6AAAAAAVSAASS4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

strickyak commented 10 months ago

Oh, and your question, would I accept a PR. Sure, if it's in the same spirit as the project. Especially to add new modules!

On Fri, Dec 29, 2023 at 11:43 PM StricK @.***> wrote:

Zack, sorry I missed your question back in March. I'm so glad you had success, and were able to write your own code!

I'm starting to refresh the design -- more the physical manifestation, than the fundamental idea -- and hope to make some circuit boards that will be more reliable than the bread boards. I'll try to let you know about our progress. If you want to be included, and you don't mind being in a list with 6 to 12 others, send me your email address, to @.***

The 13 comes from the chapter in the ATtiny85 documentation on the Digital-to-Analog converter. There is a lower and a higher resolution mode. The lower resolution is just 8 bytes. That's what we use. It takes 13 cycles to produce a result. The higher take more cycles.

I don't remember the 64. It's probably in the same chapter.

Sorry again for the delay! strick

On Mon, Mar 6, 2023 at 9:17 PM Zack @.***> wrote:

Hi Strick Yak,

This project of yours is extraordinary. I've admired it for years. I've finally just got around to tinkering with it and I'm having a blast. I made some bytebeat modules and some sample drum playing modules (with reverse effects even!). And it was SO easy, you've done so much of the hard part already I just wrote ~50 lines of code and some converters to get up and running with everything.

This is my comment - I also have two questions:

My first question is: would you be interested in a PR? I'm happy to push back whatever I get going. No problem if not, I'm happy to just tinker away myself and make my own amusement :)

My second question is, how does this calculation come about:

// Use 6:   16MHz / 64 => 250kHz.
// 250kHz / 13 => 19,230 samples per sec; nyquist 9615 Hz

I understand the clock is set to 16 Mhz, but where does the 64 and the 13 come from? I believe you that its 19.23 khz, but I'd be super interested in the origin of those magic numbers for my own edification.

In any case, thanks for the incredible source of musical joy and expression!

— Reply to this email directly, view it on GitHub https://github.com/strickyak/jerboa-attiny85-mod-synth/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAR6MH6Q2O46NNQHZHLFYLW23AFFANCNFSM6AAAAAAVSAASS4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

strickyak commented 10 months ago

And I see that github has trimmed my email address. My email name is the first 6 letters of my github name. And the domain is the final three letters of my github name followed by dot net. Only if you want to be updated on our hardware plans. Otherwise, just ignore this.