MIDI to relay help... (glockenspiel pde)

Hi ben. Just a small question. I saw this post and check out the code. I am totally new at this. So what this code does is that it receives the midi signal for each of the 8 notes capable of being receive it triggers a particular solenoid. But what will happen if you for example want to use 27 solenoids??? can it be possible by just adding the totality of solenoids into the code or something else needs to be done?? sorry if it sounds stupid but I am very amateur