File Export
-
@SteveZX81 I wonder if a QR function could be written in Fuze. I'm thinking out loud here. Must be possible somehow...
-
There's some QR C code on the internet ! Just needs converting to Fuze.
-
Sounds like a challenge!
-
What is it that you're planning to export with this QR code??
The reason that you primarily see QR codes being used to hold URLs or login details, encryption keys and so on is that they can store up to around 3 thousand bytes. That's really not a lot, certainly not enough for more than the simplest of Fuze Basic programs. And if you are going to just stick a URL into the QR code where you would expect the users what, phone? to go and download a Fuze program or asset then there are far easier ways to do that. Ways that could be done today without Nintendo even having a say in the matter.
The obvious difference that I see between the Korg gadget and Fuze is that there's probably a use to export the Korg music out of the switch. What are you going to do with the Fuze program once it's out of the Switch? Fuze doesn't exist outside of the Switch. Fuze 4 is a compeltely different beast to the Fuze versions that have come before it, so I don't see anything to be gained by Fuze adding this export.
-
Fair point, Martin. I just thought it might be handy to be able to export and print out small sections of code.
Having been shot down in flames I came up with this as a start:-QR_Reader_Test ID: MXK7ZR6XW5
I'll put the idea to bed.
-
I'm not shooting anyone down in flames! I'm simply trying to understand what it is that you want to export. If it's code snippets then sure, there's a use for that I guess.
-
It is not a bad idea but I think Martin is right. What problem are you trying to solve? If it is to get the code our for printing then there must be an easier way that could be done server side. I have looked at the QR spec and it is pretty complicated. I have seen one implementation that is several thousand lines of code.
-
If people really want a print out to go on the wall then give enough money to anyone with a dev unit and I'm sure they'll oblige...
-
@Martin It wouldn't be too difficult to generate a MIDI file using Fuze. These files are not particularly long ( if you keep to a few bars !) and could form the basis of a simple music teaching program. The MIDI file could be exported to a synth or PC program for 'polishing'. Just an example of the use of an export function. I'm not sure how long the exported files from Korg Gadget are, but the QR code seems to accommodate them ok.
Just a thought... -
Would need to know if the QR code holds the Korg exported files directly or if they hold a server-side link that pumps out the data.
-
I'm sorry, but I'm really at a complete loss as to why an export function is such a bad idea.
I've been writing code in various languages for the past fifty years - yes 50 years. From the PDP 8 onwards.
I have taught Computer science in Uni and FE colleges up and down the country using COBOL, Fortran, AutoCad, C+, Python, 6502, Z80, 8086, 8085 etc
I was Head of Computer Training at RAF Henlow 1982 - 1983 where I completed my CertEd.
I am also a published author of Programming on the Psion 3.
In the early 80's I assisted in the development of the Tangerine home computer.
I have taught Computer Science to Ford Motor Company, BT, Post Office, DLR and London Underground.
The one thing I've learnt over the years is that an external save and/or a hard copy is essential.
I shall continue exploring any option I can find to facilitate a file export function - simply because I will find it useful. -
@faz808 I don't think anyone was saying it is a bad idea. If you want to have a go at implementing QR code in Fuze I am sure that it would be possible. It would be much easier if it was implemented in the language using a library but given the priorities at the moment it could be a way off. Sorry if you thought that we were dismissing the idea
-
Version 40 QR Code can hold up to 1852 chars. The information encoded can be Text or any other suitable Data (not confined to URLs) eg MIDI files, short code segments etc.
A 50 line Fuze program is about 1.5 k and I agree anything longer than this could be a bit of a stumbling block, but breaking the code up into 1 k chunks could work.
As an aside, I put the Nintendo Switch into flight mode and Korg still generated a QR code which was readable so no server-side link was needed. This was a very long music sequence by the way.
Thanks and please keep safe.
John -
This is a bit over the top but it's a sort of a start. Not sure where I'm going with it but what the heck....
qr_generator ID: 5KQE2MND15 -
@faz808 I did my own experiment (NX29DHMDNN). Would you like to collaborate on this or are you happier doing your own thing?
-
@faz808 I know this is off topic, but what an amazing resume! I bet you've got some stories to tell :)
-
@pianofire Only just seen your reply.
Your QR took a little longer to register than mine. I'm not sure why. My 3 alignment "icons" are slightly thicker if you know what I mean. Your outer outline seems thinner when scanned. How did you extract the 1's and zeros's? I manually went across each of the 21 rows pressing 1 or 0 and then converted the binary string to hex.
I'm not sure where to go from here. I contemplated extending it to the next stage - from the present 18 characters - but it starts getting difficult.
I've tried sending Morse Code by flashing a white box but that was a flop - >50% success with a four letter word !
OCR works great if you want a screen dump to text but that's not what I was aiming for.
I'm going to get stuck into the QR Code Wiki and see if I can learn anything. Looks a bit complicated but maybe, just maybe something might click. There's now doubt that Fuze can handle the maths if I could only get my head around it.
Any thoughts? -
I of course meant <50% success …..
-
@Spacemario Yes, sir. You can say that again.... If you want to know anything about Z80, 6502, 68000 I'm your man. If I knew as much about Make files and C+ syntax as I do about machine code programming I'd be wealthy. Actually that's given me an idea for a 8086 assembler written in Fuze. Looks like a new project could be taking shape ……..
-
Instead of QR codes, why not use audio?