What is this about ?
This is about this mod : https://mods.factorio.com/mod/PMI-PadsIt adds instrument to the speaker, to make music !
PMI stand for Preceti's Musical Instrument, that's just to make sure it would have a unique name, and Pads is kind of a misnomer, because supposedly a pad is a synthetizer activated by pressing buttons, but really the mod contains sounds that i didn't know for sure in which other instrument family they belong. They are loosely inspired by the type of synth you can find in the MIDI standard. This is why i'm making this page, to give more explanations and demonstration blueprints that are not easily placed in the mod page itself. It also contain two demo map, one with just 2.0 and this single mod, to make sure no conflict occur with other instruments and the blueprints works "as intended". And another one with additionnal instrument. The second part contain explanation on how the instrument mods are made.
Demo map :
Only PMI-Pads : (updated ! )
Synthwaves , with other instruments :
What it look like in game ?
When you click a programmable speaker, it just adds instruments at the end of the list, when you click one of the instrument, it has notes like the vanilla instruments, they start by an F note, generally F1 but can be F3, it's always an F like the regular instrument, to make it easier for circuit logic.What does it sound like ? Hypersaw-2
Here is a video of a "simple" machine featuring the instrument "hypersaw-2" that was made to replicate the tutorial i followed when learning how to make the instrument for the mod :Here is the original video that i followed : https://www.youtube.com/watch?v=fVm6_27UC2g
Only the first 30 second of the video are enough to hear the sound, and that there is ony 1 instrument that was replicated, not the "context".
Here is a blueprint of the machine :
In order to know which number to write in the constant combinator for the speakers to play the same notes as the youtube video, i created a cheat-sheet which is present on the demo map, it has the value and the note next to it, it look like this :
So if you want to play the note A#4, you need to send the value "42", and A#5 will be "54", it doesn't prevent all the mistakes but it helps !
Apart from that the machine is based on a clock, that counts up to 480 ticks , which represent 8 seconds and the different instrument plays at a certain moment in time when the clock is at 15 , or 30 or 45 and so on, this was made following the youtube video. But for the kicks and snare and hi hat, i tried some freestyle with what was available, trying to make them occur at number that sound right, and tweaking manually until something that i thought was right to highlight the instrument.
I saw other people demonstrating the samples or instrument when it's played rather than just 1 notes after the other, so replicating, i found it hard to understand how the instrument is supposed to be used otherwise sometimes but they can be used in various ways hopefully !
What does it sound like ? Hypersaw-1
The machine is more complicated and may contain mistakes of my own, that's why the 1) comes after the 2), my bad, and the best machine is kept for the end ! It's needlessly complicated because it generate pseudo random music, and it can be configured a bit, but the most important is to understand that the samples are much longer ! 8 second each, versus 2 second each for the other hyper saw. You can't miss it in game it's indicated now (unlike in the video from previous version) , if you try to play those notes fast you won't hear anything ! it is an atmospheric pad, it's slow and etheral !Here is the blueprint :
What does it sound like ? Choirs-MiMo-Box
The other instruments in the mod are part of the same group, they are "choirs", which are synthetic voices present on the MIDI standard, usually it's "ah" . Here the samples last 2 seconds, and only 1 is the sound then it's the decay, the attack is quite fast which may differ a little with their standard use, but they can "easily" be chained to sound longer. There are 5 intruments because the voices can sing different sound, "mmm" which sounds like a humming sound and can be used as such, but also i found as if it was an "M" sang like religious song in some christian chuch like "ave maria", and then i thought it would be funny to make a machine that sing "mimo mimo", for my favourite DJ
here is the blueprint of the machine :
It may be a bit more recent than in the video, it contains a few indications in the combinator descriptions and i may make a post about it more in detail later and edit this part, but for now i wanted to add a few notes ( ahaha) about how the instruments were made.
How the instruments were made !
This part i wanted to document in case i'm doing something wrong i could receive some help, and if not maybe it can be of some help. The first video of the hypersaw-2 from youtube used as tutorial will serve as example
The first part was following the tutorial video on youtube ! I don't have Ableton, but the plugin used in the video, "Serum" can be used in other software, i used FL studio.
Once the instrument is ready, or "any" VST plugin really, (check the video like me if you want more information x) ). The next part is to make it play all the notes one by one instead of the cool melody from the video. It look like this :
In the background you can see the pianoroll, it's a simple midi file where i can choose the lengh of notes, and the time between them, it just play as mentionned all the notes one by one. On the right is a spectrogram, where i can "see" the frequencies of the notes, and also wether or not there is still some residual noise before the next note is played with more sensibility than with my ears. On the left is a "tuner" which detect the pitch of the note being played. This is necessary i found to make sure no mistake were made in the tuning. Because if you misconfigure an instrument or a filter it's possible that it plays a different frequency that the label of the note. I make sure the tuner match the label, some notes at the low end require the "bass" settings and often time the octave 0 isn't properly detected, on the spectogram there's no difference between two notes, in such case i consider the notes are failed, it's not just my ears that can't hear the difference. I will discard those in the future whereas for some previous instrument i included them with a disclaimer for the signal logic to have 0 offset. The offset is of "12" per octave otherwise.
Then i export this file in "Audacity", it's 1 big audio file of several minutes at this point, it look like this :
That's showing the failed notes. It's me who added the label on a template file , it took a bit of time, but then it's easy because it's just a matter of changing the BPM and they will match any audiofile exported with the same pianoroll from FL studio.
When zooming in it's possible to use the spectrogram which is in stereo ! and the waveform view at the same time! and seeing individual sample, how they fit on the "sample" :
Here it's possible to vizualize the very subtle echo that ping pong in each ear when a note is played, even if it's not visible on the other spectogram or on the waveform. The combo of the 2 view allow to also have an idea of the mastering, wether some notes are too loud or if the average is "ok". It's also possible to put 2 instrument and "see" if the spectrogram matches, to make sure they are tuned the same way. It's where i remove the notes that are not suitable for the mod. And most importantly for me , it's how i export the individual files of each notes, using the option to export each label as an individual sample named after it, it fill in a folder with 132 files, but the removed notes are just empty so i delete them after sorting the files by size.
Then to put them into a mod, it is just a copy of how the vanilla instruments are done. It adds a new "instrument", similar to the others "instrument", and this instrument has "notes", i just added the label for the extra notes in the locale file required for them to show in the list of the speaker.
Feedback Donations
I'm not accepting donations x) it's just a joke, there is no license on the sounds, you can use them for anything, i'm grateful for the free-to-use software and those that have a trial version , the free tutorial and plugins on the internet, that's my feedback.If you want to suggest another instrument, an improvement, something i did wrong, please feel free to do so, here or in the modpage or in private message !