I have changed the SFXEditor to use : #define PROJ_AUD_FREQ 8000
I press the right key repeatedly. After the note 60, the pitch goes down.
Edit: Sorry the video was not attached. I must upload it to youtube.
Edit: Now it is ready.
I have changed the SFXEditor to use : #define PROJ_AUD_FREQ 8000
I press the right key repeatedly. After the note 60, the pitch goes down.
Edit: Sorry the video was not attached. I must upload it to youtube.
Edit: Now it is ready.
Oh, thatās not the table.
It seems there is a bug somewhere in the SFX editor.
Iām trying this and if you leave only the basic wave (turn off the bending etc.), then for e.g. a square wave noise the pitch starts to go down somewhere at G#7. Canāt that really be related to the aliasing? Non-sine waves are made of much higher frequencies than the note, which will create aliasing with such low sampling rate.
No because in the SynthTest everything works as is supposed to.
There is some silly mistake (signed/unsigned or something like that) in the SFX editor. I will fix it
Then I have the same mistake in PGP as I cannot get setOSC() to work correctly with 8 kHz sample rate.
Ok I will take a look right now
Edit: verified, does same in PokittoSim, so definitely a coding error
Edit2: does same in SynthTest, I may have accidentally screwed something up while I was working on the sample playback support
Edit3: yes indeed. According to the table, note 59 should take 8 steps to cycle. It cycles in 2. Still looking for the reason why
Well color me surprised. It was an aliasing problem.
Damn. I though 32 bits would have been enough for the counter.
I need to rewrite some stuff
@Hanski , its fixed now. You can get the changes from the github repo, and you can try the sfxeditor bins I made
sfxed8k.bin (119.7 KB)
sfxed11k.bin (119.7 KB)
sfxed16k.bin (119.7 KB)
sfxed22k.bin (119.7 KB)
I didnāt realize, but the way I was handling mixing was effectively cutting the aliasing frequency to 1/4 ! Now there is a slightly more cpu-intensive version in place.
Works for me also
You will notice that at 8khz the highest 2 notes still show the behaviour you noted.
But getting rid of that would require rewriting everything to 64 bits
That is not a problem for me.
We have realised that to make this a ārealā game, we need much more tracks and textures; at minimum something like four tracks at first and four more to unlock.
If I made it possible to load the textures and the track definition (as text) from SD, would you use it (either for the new textures or the new track file, or both) and contribute the result to this game?
(Of course, this poll is not binding in any way)
0 voters
An example of the track definition text file:
..............................
........bcccccccccccccccccce..
........a..................a..
...bccccd..................a..
...a.......................a..
...a.......................a..
...a.......................a..
...s.......................a..
...a...........bccce.......a..
...a...........a...a.......a..
...a...........a...a.......a..
...fcccccccccccd...fcccccccd..
..............................
In the old days, user contributed tracks was one of the most fun features of games like Slicks and Slide
Thatās cool! If this would become a crazy popular thing I might do a visual track editor.
Edit: Or reuse/modify some existing track editor
User maps are a must, Iām counting on that ā again looking back at TrackMania, the creative community is what pushes the fun up multiple levels.
For tools like this I like to just make an HTML file and program it in browser JavaScript ā making GUI is a no-brainer, all the I/O is taken care of, flexible scripting lang, itās OS independent, you have instant debugging tools, can host it onlineā¦
Or ā and this is my idea of keeping it simple ā just make some visual plain text format to load the map from and let users use their favorite text editor (PokiPad? :-)
) to create maps (someone can still wrap this into its own GUI editor later). Like:
name: my awesome map
laps: 3
__S___ _
/ \___/o \
|o ___ |i
|x __/x \__/
\___/
Yes, HTML&Javascript is a good option for the visual editor.
Initially, I am plannig to define it by something like this. This is very near of how it is defined in the code. Later, I will add other objects to the definition, like: billboard objects, a diagonal track element, 3- and 4-way crossroads, jumpers, boost areas, etc. .
..............................
........bcccccccccccccccccce..
........a..................a..
...bccccd..................a..
...a.......................a..
...a.......................a..
...a.......................a..
...s.......................a..
...a...........bccce.......a..
...a...........a...a.......a..
...a...........a...a.......a..
...fcccccccccccd...fcccccccd..
..............................
That would be great as the user do not have to hassle with switching the SD card forth and back when small changes are being done.
Currently, in the poll we have 9 people who can potentially make new tracks and/or textures. That is a very good result! I will look into that soon.
Right now I am ācomposingā (or stealing) little fanfares and melodies to be used in PGP.
Edit: I am also planning to write an example app of how to use PokittoLib āSound playerā API to play tracker music (in Synth_songfuncs.cpp).
Hi,
The new version is available ( v1.0.2). Quite nice features this time
I am quite happy with the audio quality even at the 8 kHz sample rate. :-). The music in the video was recorded from the main speaker of Pokitto, not any external devices used.
The latest binaries are attached to the top post of this thread:
Hanski, could you tweet that video? I see there are people on the fence about buying. When they see that video, they will be convinced. Thanks!
OMG sound makes everything better. Feels like this: