go-funk

所属分类:编程语言基础
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2018-05-31 17:51:32
上 传 者sh-1993
说明:  SoundCloud围棋编程挑战,
(The SoundCloud Go Programming Challenge,)

文件列表:
Makefile (197, 2018-05-16)
audio/ (0, 2018-05-16)
audio/wav.go (631, 2018-05-16)
audio/wav_test.go (679, 2018-05-16)
config.go (1400, 2018-05-16)
gopher.go (1106, 2018-05-16)
gopher_test.go (1172, 2018-05-16)
handler.go (2313, 2018-05-16)
main.go (1516, 2018-05-16)
public/ (0, 2018-05-16)
public/rick/ (0, 2018-05-16)
public/rick/fixture.wav (37674576, 2018-05-16)
public/rick/gopher.jpg (120483, 2018-05-16)
public/rick/rick1.html (857, 2018-05-16)
public/rick/rick2.html (848, 2018-05-16)
renderer/ (0, 2018-05-16)
renderer/color.go (1237, 2018-05-16)
renderer/config.go (97, 2018-05-16)
renderer/gif.go (756, 2018-05-16)
renderer/gif2.go (1031, 2018-05-16)
renderer/gopher.go (1402, 2018-05-16)
renderer/gopher_test.go (695, 2018-05-16)
renderer/project.go (700, 2018-05-16)
renderer/project_test.go (261, 2018-05-16)
renderer/rectangle.go (448, 2018-05-16)
renderer/rectangle_test.go (1045, 2018-05-16)
renderer/renderer.go (106, 2018-05-16)
renderer/waveform.go (427, 2018-05-16)
sampler/ (0, 2018-05-16)
sampler/abs_avg.go (132, 2018-05-16)
sampler/abs_avg_test.go (293, 2018-05-16)
sampler/avg_abs.go (148, 2018-05-16)
sampler/avg_abs_test.go (293, 2018-05-16)
sampler/compress.go (680, 2018-05-16)
sampler/compress_test.go (2381, 2018-05-16)
sampler/sampler.go (203, 2018-05-16)
vendor/ (0, 2018-05-16)
vendor/github.com/ (0, 2018-05-16)
... ...

# wavelet In this challenge we will render images and gifs of waveforms from a wav file. The following functionality has been removed and needs to be implmeneted: - `AbsAvg` - A sampler function that samples a slice and returns the average values of the slice's absolute values - `Project` - function that normalizes the values in a slice of integers to a given maximum - `DrawRectangle` - A function that draws a rectangle of given bounds inside an image. - `RenderGopherFrame` A function that returns a paletted image for a gif - `ColorGopherFunc` - A closure ColorFunc function that returns the color of a pixel in the original image. Given new bounds. Run the server with: make run-server Or: go test ./... && go build && ./go-funk You can see all the samples at: curl http://localhost:8080/samples Try rendering a couple waveforms with: http://localhost:8080/waveform http://localhost:8080/waveform?colors=reds Try rendering a "real-time" gif of the samples: http://localhost:8080/gif?count=5000&width=50&height=200 http://localhost:8080/gif2?count=5000&width=50&height=200 http://localhost:8080/gopher To see the *almost* synched version of the gif with the song: http://127.0.0.1:8080/rick/rick1.html http://127.0.0.1:8080/rick/rick2.html

近期下载者

相关文件


收藏者