Page 1 of 1

Why there is not a full scale in Programmable Speakers?

Posted: Tue May 02, 2017 6:31 pm
by Amegatron
Sorry if this is a wrong thread, but ... The question is: why the notes start from F3? Not C1, nor even C3?
I returned back to Factorio because combinators are my favour, and started to play with the speaker. Basically I implemented one of my favourite piano songs, but the short scale stops me from implementing it fully.
Or maybe it is possible to expand the scale by modding?
Thanks.

Re: Why there is not a full scale in Programmable Speakers?

Posted: Tue May 02, 2017 8:05 pm
by daniel34
Amegatron wrote:Or maybe it is possible to expand the scale by modding?
It is. Every note of every instrument has it's own sound file stored in data\base\sound\programmable-speaker, and in data\base\prototypes\entity\entities.lua it is defined which sound file corresponds to which instrument/note.

If you have a sound file of every note you need you can put them all in a mod and in the data.lua file of the mod add a new instrument for the programmable speaker where you define which input value should play which sound file.

Re: Why there is not a full scale in Programmable Speakers?

Posted: Tue May 02, 2017 8:32 pm
by Amegatron
daniel34 wrote:
Amegatron wrote:Or maybe it is possible to expand the scale by modding?
It is. Every note of every instrument has it's own sound file stored in data\base\sound\programmable-speaker, and in data\base\prototypes\entity\entities.lua it is defined which sound file corresponds to which instrument/note.
Thanks for the reply! If I have time and appropriate mood I'll give this a try :)