Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : PicoMite V5.07.08 betas
Page 3 of 11 | |||||
Author | Message | ||||
Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 554 |
wow materp , thanks a lot ! mod file support for the pico it great thanks again Plasma |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9126 |
I've just update b9 with some optimisation of the launch time for MOD files. Also added: PLAY MODSAMPLE sampleno, channelno [,volume] See the CMM2 manual for PLAY MODSAMPLE. Here are some great mod files from https://modarchive.org/index.php?request=view_top_favourites to get you started modfiles.zip Download updated 16:44 UTC Edited 2023-07-24 02:45 by matherp |
||||
darthvader Regular Member Joined: 31/01/2020 Location: FrancePosts: 76 |
So much memory's with the mod files Thank you Peter I have to test on the marble pico with 8mb ... if my work give me some free time ! Theory is when we know everything but nothing work ... Practice is when everything work but no one know why ;) |
||||
Martin H. Guru Joined: 04/06/2022 Location: GermanyPosts: 1114 |
Sadly not so good results by now.. OPTION COLOURCODE ON OPTION KEYBOARD GR OPTION SDCARD GP10, GP12, GP11, GP13 OPTION AUDIO GP6,GP7 When I try, to Play a MOD File, I get a "Mod playback not enabled" But when I try to reserve the MODBUFF, unfortunately my pico gets into panic 00:05 01-01-2000 130048 ELYSIUM.MOD 0 directories, 1 file > play modfile "ELYSIUM.MOD Error : Mod playback not enabled >A: OPTION MODBUFF ENABLE 65535 *** PANIC *** PicoMiteVGA MMBasic Version 5.07.08b9 Copyright 2011-2023 Geoff Graham Copyright 2016-2023 Peter Mather *** PANIC *** PicoMiteVGA MMBasic Version 5.07.08b9 Copyright 2011-2023 Geoff Graham Copyright 2016-2023 Peter Mather *** PANIC *** etc. I was only able to persuade him to continue working with flash_nuke.uf2 It panics, even if I try to set the modbuffer right after reinstallation without any options Edited 2023-07-24 15:42 by Martin H. 'no comment |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
The size reserved should be in Kilobytes. VK7JH MMedit MMBasic Help |
||||
Martin H. Guru Joined: 04/06/2022 Location: GermanyPosts: 1114 |
option modbuff enable 64 works .. Thank you Jim 'no comment |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9126 |
As Jim says the size is in Kbytes However, it shouldn't have let you put in a silly value. This was a bug in my parsing which I will fix. NB: also in the next version it will force the value to be divisible by 4 (needed for flash erase) |
||||
Martin H. Guru Joined: 04/06/2022 Location: GermanyPosts: 1114 |
Thank you, even if i just reflash the mmbasic Version it still "panics". ' for someone who dares to write a traker for the Pico. Here is my suggestion for the GUI (inspired by the ATARI NOISETRAKER) this does nothing, just draws the GUI and waits for ESC to be pressed. Dim integer COL(15):Restore colors:For f%=1 To 15:Read COL(f%):Next f% MODE 2:Font 9:CLS COL(11) DTEXT 0,3,"xPOSITION":DTEXT 4,14,"PATTERN":DTEXT 4,24,"LENGHT" DTEXT 4,34,"RESTART":DTEXT 4,48,"SAMPLE":DTEXT 4,58,"VOLUME" DTEXT 4,68,"LENGHT":DTEXT 4,78,"REPEAT":DTEXT 4,88,"REPLEN" DTEXT 4,102,"SONGNAME:":DTEXT 4,114,"SAMPLE:":DTEXT 4,126,"STATUS:" Frame 0,0,72,44:Frame 0,124,320,116 DTEXT 146,2,"PLAY STOP CLEAR":DTEXT 132,13,"PATTERN DISK.OP HELP" DTEXT 146,24,"EDIT SAMPLER":DTEXT 140,35,"RECORD PREFS QUANT" DTEXT 142,46,"TEMPO TRANS COPY" For f%=0 To 88 Step 11 If f%<66 Then Frame 73,f%,30,10 Frame 104,f%,8,10:Frame 113,f%,8,10:DTEXT 106,f%+1,"}":DTEXT 115,f%+1,"{" If f%<55 Then Frame 122,f%,6,10 :Frame 129,f%,63,10:Frame 192,f%,64,10:Frame 256,f%,64,10 EndIf Next f% Frame 0,100,255,11:Frame 256,100,64,11:Frame 0,112,255,11:Frame 256,112,64,11 Frame 129,55,198,44:frame 0,1,8,12 Box 4,138,22,98,,0,0:Box 29,138,70,98,,0,0:Box 101,138,70,98,,0,0 Box 174,138,70,98,,0,0:Box 246,138,70,98,,0,0 do:n$=inkey$:loop until n$=chr$(27) '----------- Sub Frame xx,yy,ww,hh Line xx+1,yy,xx+ww-1,yy,,COL(7):Line xx,yy+1,xx,yy+hh-1,,COL(7) Line xx+1,yy+hh,xx+ww-1,yy+hh,,COL(1): Line xx+ww,yy,xx+ww,yy+hh-1,,COL(1) End Sub Sub DTEXT xx,yy,TE$ Colour 0:Print @(xx+1,yy+1,1)TE$:Colour col(7):Print @(xx,yy,1)TE$ End Sub '------------------ colors: '--PicoMite Colorscheme accordung to matherp Data RGB(BLUE),RGB(GREEN),RGB(CYAN),RGB(RED) Data RGB(MAGENTA),RGB(YELLOW),RGB(WHITE),RGB(MYRTLE) Data RGB(COBALT) ,RGB(MIDGREEN),RGB(CERULEAN),RGB(RUST) Data RGB(FUCHSIA),RGB(BROWN),RGB(LILAC) ' 8x8 Font (Martin H.) ' Font type : Full (95 ChArACtErs) ' Font size : 8x8 pixels ' Memory usage : 764 Bytes DefineFont #9 5F200808 00000000 00000000 18181818 00180018 006C6C6C 00000000 367F3636 0036367F 3E683F0C 00187E0B 180C6660 00066630 386C6C38 003B666D 0030180C 00000000 3030180C 000C1830 0C0C1830 0030180C 3C7E1800 0000187E 7E181800 00001818 00000000 30181800 7E000000 00000000 00000000 00181800 180C0600 00006030 7E6E663C 003C6676 18183818 007E1818 0C06663C 007E3018 1C06663C 003C6606 6C3C1C0C 000C0C7E 067C607E 003C6606 7C60301C 003C6666 180C067E 00303030 3C66663C 003C6666 3E66663C 00380C06 18180000 00181800 18180000 30181800 6030180C 000C1830 007E0000 0000007E 060C1830 0030180C 180C663C 00180018 6A6E663C 003C606E 7E66663C 00666666 7C66667C 007C6666 6060663C 003C6660 66666C78 00786C66 7C60607E 007E6060 7C60607E 00606060 6E60663C 003C6666 7E666666 00666666 1818187E 007E1818 0C0C0C3E 00386C0C 70786C66 00666C78 60606060 007E6060 6B7F7763 0063636B 7E766666 0066666E 6666663C 003C6666 7C66667C 00606060 6666663C 00366C6A 7C66667C 0066666C 3C60663C 003C6606 1818187E 00181818 66666666 003C6666 66666666 00183C66 6B6B6363 0063777F 183C6666 0066663C 3C666666 00181818 180C067E 007E6030 6060607C 007C6060 18306000 0000060C 0606063E 003E0606 42663C18 00000000 00000000 FF000000 7C30361C 007E3030 063C0000 003E663E 667C6060 007C6666 663C0000 003C6660 663E0606 003E6666 663C0000 003C607E 7C30301C 00303030 663E0000 3C063E66 667C6060 00666666 18380018 003C1818 18380018 70181818 6C666060 00666C78 18181838 003C1818 7F360000 00636B6B 667C0000 00666666 663C0000 003C6666 667C0000 60607C66 663E0000 07063E66 766C0000 00606060 603E0000 007C063C 307C3030 001C3030 66660000 003E6666 66660000 00183C66 6B630000 00367F6B 3C660000 00663C18 66660000 3C063E66 0C7E0000 007E3018 70707000 002070F8 00181818 00181818 F8702000 00707070 00466B31 00000000 FFFFFFFF FFFFFFFF End DefineFont Have Fun Mart!n Edited 2023-07-24 18:26 by Martin H. 'no comment |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4246 |
Tested b9. On a working system (VGA) with A: drive containing 30+ files: *** PANIC *** after OPTION MODBUFF ENABLE 128. The PANIC is a non-volatile panic. After reboot, the pico connection to USB terminal program, but no video is shown. Something is realy confused. After nuking the flash, and a clean install I could OPTION MODBUFF ENABLE 128 and modbus plays the MAXITREK MOD file. Apparently pico cannot free up space when the A: drive already is used. Volhout P.S. Does the MODBUFF contain the whole .MOD file? Or only the samples data ? Edited 2023-07-24 19:03 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9126 |
I've updated the downloads to avoid the panics (hopefully) https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip The whole mod file is loaded into the buffer so it needs to be at least as big as the biggest file you want to play - now checked properly Edited 2023-07-24 19:54 by matherp |
||||
Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 554 |
Is the DAC also supported? Has anyone a working Example ? My vga pico board sounds bad if i powered from pc. What power supply is the best for Matherps version? Plasma |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9126 |
Yes. I get perfect sound from both versions powered by the USB. My cards use a linear regulator and there are various Pico clones that also don't use switchers |
||||
Martin H. Guru Joined: 04/06/2022 Location: GermanyPosts: 1114 |
hmm .. i set the Buffer to 64 KB. and it Plays both MOD Files (bigger than 64k) fine > files B:/Mod 00:45 01-01-2000 0 bootcount 00:05 01-01-2000 130048 ELYSIUM.MOD 01:01 01-01-2000 189824 Hippos.mod 02:20 01-01-2000 38518 screen.bmp 02:14 01-01-2000 3523 Traker.bas 0 directories, 5 files >play modfile "hippos.mod Playing wir happy hippos >play stop Edited 2023-07-24 20:34 by Martin H. 'no comment |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9126 |
Have you downloaded again? This is fixed in the latest download. Timestamp on the latest in the zip file is 10:45 |
||||
Martin H. Guru Joined: 04/06/2022 Location: GermanyPosts: 1114 |
OK rewritten with the latest Version, modbuffer 128K (no parameter) 130048 ELYSIUM.MOD playes 189824 Hippos.mod does not (Error: File to large for modbuffer) Both MOD files played in the other Version with buffersize 64k Edited 2023-07-24 21:00 by Martin H. 'no comment |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9126 |
Yes, but it was overwriting things it shouldn't have. Set MODBUFF to be bigger than the biggest file you want to play. On my boards with a 16Mb flash I set it to 1024 |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4246 |
Tried latest b9, all looks well. Perfect job... Only in doubt what MODBUFF size to keep on a standard picoVGA. No dynamic allocation, so A: will get small if you reserve 512k. I guess I'll stay with 128k for now. Impressive these example files. So much music in such small files. Incase PWM is 32kHz and you update 16kHz, what is in the "in between" samples ? average ? Volhout PicomiteVGA PETSCII ROBOTS |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9126 |
Two the same. It just keeps the PWM frequency up while not hammering the cpu. In the case of the DAC it is only updated every second time |
||||
Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 554 |
PicoMiteVGA MMBasic Version 5.07.08b9 OPTION KEYBOARD GR OPTION CPUSPEED (KHz) 252000 OPTION SDCARD GP13, GP10, GP11, GP12 OPTION AUDIO GP6,GP7, ON PWM CHANNEL 3 OPTION MODBUFF 128 HI , looks like every modfile (matherps list) starts 3 x repeating the first sec and then running fine . can anyone confirm this? Plasma |
||||
Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 554 |
@matherp : i send a PM with the video link Edited 2023-07-26 08:05 by Plasmamac Plasma |
||||
Page 3 of 11 |
Print this page |