« first day (283 days earlier)      last day (2622 days later) » 

2:19 PM
@LuisMendo Ah yes, that is a little clearer actually. It seems also to be more consistent with imwrite and imshow.
 
 
6 hours later…
8:46 PM
Pushed:
New function Y#: sound, soundsc, audiowrite.
@Suever ^ v
There seems to be a problem in my computer. l11e3H$XrTY# should produce 0.25 seconds of white noise. On my computer it doesn't work quite right. But it happens in Matlab too (not just in MATL), that's why I'm pretty sure it's my computer's fault. Can you check?
With MATL on Matlab, instead of 0.25 of noise it sounds like stuttering, with the noise interrupted by a brief silence.
With MATL on Octave, the sound lasts much less than 0.25, almost imperceptible, as if there was an initial unwanted silence that blanks most of the sound.
The saved file (replace T by F) seems to be correct.
 
@LuisMendo Ouch.
That was some white sound for 0.25 seconds on my machine
I also had the volume way too high apparently
 
Whoops :-)
So it worked?
I was thinking, if you implement sound in the online compiler, what if the program produces several sounds? Same with images actually, how is that done currently?
 
9:25 PM
@LuisMendo Hmmmm I thought that it would output the multiple images in the output
But apparently it is only showing one of them. I'll have to dig into that. When I first wrote it I know I tested that and it woudl print all of them
with the sound, I imagine showing a playback control for each produced sound
And only play it when the user selects play
Basically this:
 
Oh, that would be very nice
 
Yea and it's quite easy on the server side because I just create the file and stream it back to the user
 
9:43 PM
@LuisMendo Oh hmmm. With images I apparently explicitly made it replace images
I guess the thought there was to actually allow animations
Like this
 
@Suever Heyyy! I didn't know it supported animations with images!
 
But for audio, it would obviously show all audio samples as different outputs
With the images, I could always add a toggle to have images not over-write
 
Regarding this: Perhaps it's better to keep animation rather than multiple images, isn't it?
Ah, toggle for overwrite, I see
Not sure if it's worth the effort
If multiple images are shown, the animation probably makes more sense
 
Haha yea I thought it was a bug and it turned out that I was smarter than I realized and it was instead a feature
 
Offline MATL would overwrite, I think
 
9:49 PM
Yes it would. That was the idea I believe (to emulate the offline behavior)
 
Ah, so you opened the Github issue before realizing that? Haha
 
Yea I went to investigate the bug
 
and it turned out not to be a bug!
 
Yea I too forgot you could animate images
obviously they are going to be not as awesome as text animations because of the large amount of data sent over the internet compared to text
 
Not sure if Github notifies you. You probably don't need to patch/overload/whatever is called soundsc
 
9:52 PM
@LuisMendo Oh yea I have my Github notifications set on the most obnoxious "notify you of everything" setting.
You should write a guitar tab parsing challenge
Give me a chord as a tab and I create an audio file of it
 
That would be an interesting one, yes!
Funnily, we had a very good one about chord recognition. I sent the link to a friend who's a musician, and she liked it a lot. Maybe I will get her into code golf :-P
 
Wow that is quite the MATL answer
 
Heh. Thanks for the upvote :-P
 
That may be the longest one
I'll have to pull up the analytics branch of MATL Online and see
 
It was also funny that during testing I made a mistake in my input chord. I thought the program output was wrong. But it was me who was wrong :-)
There was the duck one, may be longer
Yup. 182
And the challenge has this epic comment
First I was thinking "huh, what is a duck?". Luckily you have provided a link to the wikipedia page. — Adnan Feb 25 '16 at 22:52
@Suever How is that going? I saw some GitHub notification about that
I use your script a lot
To see number of answers that use a function
 
10:00 PM
"101 bytes saved"
wow
 
Haha. Yes. Probably the highest proportion, and definitely the highest amount of saved bytes
 
@LuisMendo It's coming along. I haven't had a ton of time to work on it lately. But right now I can fetch all questions and do some basic stuff based purely on the data from SE (# of answers per user, average score, answers over time, etc.). I've now started integrating the actual parsing of the answers
 
10:16 PM
Well, having the offline script is already a great thing
@Suever How are the images sent to the browser? If it's something like png, images with flat colors should be pretty fast
And they were, in your example
 
10:27 PM
@LuisMendo Yea it's the raw PNG data so they are relatively small in size.
This is maximum throughput: matl.suever.net/…
I assume that it's kind of slow because it has to write the PNG data to a file on the hard drive first before then opening the file again and sending the contents across the wire
 
11:12 PM
Well that's pretty fast
Is it normal that the vertical slider keeps shrinking?
As if the page was growing with blank space
 

« first day (283 days earlier)      last day (2622 days later) »