2017-04-06 59 views
3

我正在製作關於數據壓縮的教育視頻,這將受益於小劑量的幽默。由於大多數無損壓縮的原理是reducing repetition,所以我想用歌詞的方式來說明這個想法。如何解釋使用歌詞的數據壓縮歌詞

例如,以下圖像的左側是來自Sia的未壓縮歌曲(片段)。壓縮後的版本會通過將它們調出來省略重複。

Two lyric files are shown: on the left the original. On the right, the compressed version. The compressed version substitutes repeat verses with references to the number of repetitions it should have or tagged content present elsewhere

我說那個漂亮的清楚地表明瞭這種類型的壓縮技術。但它表明壓縮增加了複雜性(通過標記和引用重複子序列)。它也不會太壓縮,因此我可以向觀衆挑戰,探索壓縮歌詞的其他方式(即刪除空白等)。

但是有一個問題!歌詞是無趣的(更不用說版權)。所以我想,製作Sia可能寫的歌詞類型的漫畫會更有趣,然後賣給其他藝術家(比如Beyonce)。我在想Stackoverflow可以提供幫助。回覆這個帖子用抒情漫畫說:

  1. 適合十二歲的孩子(PG)
  2. 中有重複,使「壓縮」版本實際上看起來更小
  3. 原本是你的(沒有版權)
  4. 做了流行音樂的玩笑(because a lot of it is)。 Exhibit A
  5. 幫助溝通的想法更好

作爲回報我會(即有損壓縮的示範?):

  1. 閱讀所有的答案。
  2. 給所有我的聲望(在接受答案的時候)高達1500點(Stackoverflow的賞金限制)發佈給最有趣或最有回報的答案(謹慎是我的)。
  3. 獎勵積分4月11
  4. 一些時間給了「中獎」作詞信用在我的教學視頻
  5. 鏈接該視頻在這裏

回覆,如果你貪點,但也相信STEM教育應該更具吸引力

更新1

我已經bountied我的名譽

+2

幹得好,好建議,恭喜。不確定S.O.是它的正確的地方......但是,繼續努力吧!請提供更多的教育。 – statosdotcom

+1

這可能不是你的問題的正確的地方。如果你願意,你可以[在meta上提問](// meta.stackoverflow.com) - 這可能是一個有趣的討論。 – Undo

+1

獲得500回來使你「本週聲譽542最高0.02%」。品嚐它!讓我們知道你是否將這個帖子發佈到別的地方。我幾乎準備好了。 EDESMDSEOEPTIRRTETBNDCSODESSEDG – philipxy

回答

0

好吧...所以... ahm ...

這是我的嘗試,如果你喜歡,敬酒。 我現在筆記轉換,仍然在學習... 我可以嘗試寫更多的歌詞,如果你喜歡,不知道我是否正確理解所有的條件。

因爲我來自德國,並聽取硬派流氓說唱(;))只有我沒有任何線索通常是如何美國歌曲結構。我會試試看。

Sia, listen, sit down we need to talk. 
I know it's not easy in your position 
managing business and the like 
check your lyrics -> 0 rhymes 
not even a spark of inspiration on your mind. 
take my hand, let's go for a walk... 
To be honest I have never thought 
that you'd have more than 500 points on this site... jeez... 

But while we're here, let's not forget, 
being a developer is something I personally regret 
I would rather write songs, keep the flow... 
I'm like this kid... libmozart... well, now you know... 
anyways, I almost forgot – look at the clock 
it's time to talk about the plot in this track. 

Sia, do you ever think about why there are old classic dvds 
with around 10 songs and a few beats 
while there are a few dozen CDs 
with around 3000 songs each? mostly pop songs indeed... 
because it's really really cheap, to store pop songs using zlib 

listen, 
You wanna know why? 
You wanna know why? 

gzip turns your repeated lyrics into just a handful of bytes 
to reduce the size it's not magic am I right? 
you all sound familiar am I right? 
jeez, look at your eyes – cold shiver. 
even an algorithm doesn't find anything that differs. 

我想我涵蓋了所有的觀點,我應該更多地探討有損壓縮的細節嗎?對於壓縮,有可以壓縮一些整個句子(你想知道爲什麼嗎?)和幾個單詞(周圍,歌曲,forg_t,老天等)。這也是凌晨4點所以每一個拼寫錯誤是因爲有損壓縮的。

如果你正在尋找的那種阿姆開發者你可以自己發佈作爲SIA或添加更多的咖啡到你的賞金。