Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Juju

Pages: 1 [2] 3 4 ... 388
16
Community Contests / Code Golf - The Reboot #8
« on: July 20, 2015, 04:12:15 am »
Hey, it's me again, Juju, hosting the eighth iteration of Code Golf: The Reboot. This week, the output will be... sound. Yep, you heard right. Pun intended.

The assignment today is a simple A4 sine wave, sample rate of 8000 Hz, in raw wave format. But first, you'll want to understand at least a little how to make one. First, know you'll have to output 8000 bytes to make one second, but you don't have to output all that in exactly one second. To make a simple A4 (frequency of 440 Hz), look at the graph for sin(x). Map the y from [-1,1] to [0,255] (don't forget to round it to remove the decimals!) and try to fit the wave you get ([0,2π[) 440 times in those 8000 bytes. Then just output the bytes you just generated, no header or anything. On calc, if you can output those bytes through the link port with the timing, that would be great (no Freq(), you Axe people!), otherwise, you can just output a list with the 999 first numbers you get (makes for about 1/8 of a second) or an infinite loop that disps the numbers (if you output on screen, you don't need the timing), or whatever the easiest for you. On PC, you can output the raw bytes in an infinite loop or the 8000 first ones (makes for one second) so I can pipe them through aplay.

tl;dr you have to output a very specific sin() function with specific parameters. Should be simple enough.

The rules are still the same, if you have any questions, please ask. Have fun!

Ranking
@3298 - SysRPL - 53 bytes

17
Well, according to the OP that should be my turn, right?

18
That sounds fun. So who's doing it Monday?

19
I also have one ready, but I'm not sure if it can be doable on calc. You have to send a bunch of bytes via the link port, although I could always make them save it to a string/appvar/screen/etc.

20
Heard @c4ooo won't be able to host either, so guess it'll be my turn? Well I'm ready.

21
Community Contests / Re: Codegolf - The Reboot #7
« on: July 14, 2015, 01:58:22 am »
Interesting challenge here. Got it down to 175 bytes, despite not having any numbers.

22
Art / Re: Pixel artist needed
« on: July 12, 2015, 02:10:56 pm »
Nah, I took them from Desktop Ponies :P

23
Art / Re: Pixel artist needed
« on: July 12, 2015, 01:59:58 pm »
Yeah I'm quite busy with a few projects, plus I'm kinda terrible at pixel art. Maybe my brother could help.

24
Art / Re: Pixel artist needed
« on: July 12, 2015, 01:11:24 pm »
That looks pretty interesting, good luck!

25
Introduce Yourself! / Re: HI
« on: July 08, 2015, 03:09:56 pm »
Hey there Unicorn ^_^

26
Community Contests / Re: Codegolf - The Reboot #6
« on: July 08, 2015, 04:19:53 am »
I did it! Got it down to 116 bytes in Ruby, pretty easy when you think about it.

27
Community Contests / Re: Codegolf - The Reboot #6
« on: July 06, 2015, 07:57:42 pm »
It looks kinda hard, but that should be doable.

28
Community Contests / Re: Code Golf: The Reboot #4
« on: June 29, 2015, 12:19:47 am »
Well, no one entred, that's a bummer. Thought you guys would do it anyway... Oh well. Stay tuned for the next code golf hosted by @JWinslow23 !

29
News / Re: Android reaches the Nspire!
« on: June 28, 2015, 03:35:16 am »
Well, that's pretty cool. It's pretty much a proof of concept, but that's still pretty cool.

30
Community Contests / Re: Code Golf: The Reboot #4
« on: June 28, 2015, 03:33:58 am »
Well, I did it myself and had no idea how to do it before, and thought the algorithm isn't that hard and easy to golf, figured you guys could do it... Oh well.

Pages: 1 [2] 3 4 ... 388