search for: album

Displaying 20 results from an estimated 831 matches for "album".

2006 Jan 21
9
Where to put method
I''ve got following code in GenresHelper.rb def album_list(genre) albums = genre.albums.sort list = albums.collect { |album| link = link_to album.title, :controller => ''albums'', :action => ''show'',...
2008 Jan 10
4
Mocking and stubbing Rails'' association extensions
I''m having a lot of trouble stubbing out an association extension for some view tests. Example rails code modeling a music album: class Album < ActiveRecord::Base has_many :songs do def streamable find(:all, :conditions => ''streamable = 1'') end end end So for a given Album instance (say @album), I need to be able to stub both @album.songs and @album.songs.streamable in the s...
2006 Jan 10
1
[AJAX] related drop-down list question
Hi all, I followed the example on: http://www.roryhansen.ca/?p=9 for creating related drop-down lists. However, this code actually creates HTML in the controller component: @albums = Album.find_all_by_artist_id(@params["artist_id"]) @html = "<select id=''album_id'' name=''album_id''>" @html += "<option value=''''>No Album</option>" @albums.each do |@album| @html += "<op...
2004 Sep 10
1
[Flac-users] Grip, FLAC, and album replay gain
OK, here's a problem: I want to set the album replay gain in each track, but I'm using grip to rip and encode the tracks one by one. grip knows that all the tracks are on a single album, but FLAC sees them one at a time. I put the --replay-gain option on the FLAC command line, so it emits four comments into the vorbis commebnt block,...
2006 May 31
7
Rails, Transactions, and statements
...t that has yet to be committed. The operation that uses the id may fail, and if so, I need to rollback the database. I can''t figure out how to send only the statement to the database without the commit without sending over hard coded SQL. This is what I started out with: 1 def add_album 2 Album.transaction do 3 @page = Page.find(params[:id]) 4 @album = Album.new(params[:album]) #creates a new Album in the database 5 6 linking = Linking.new(:page_id => params[:id]) 7 linking.linkable = @album 8 9 create_path(@album.id) #makes a directory using...
2017 Jun 07
0
Sending artist - title - album metadata
Another correspondent here has pointed out that: > Recently Stream Licensing LLC has changed their requirements so that > streaming internet stations in the US must stream the album [name] > along with the song title and artist. We are also in this particular boat. We are using Centova Cast which uses Liquidsoap as its AutoDJ and Centova say that if the album tag is stored in the file then it will be sent. We know it's there because it is displayed by Centova's wid...
2009 Dec 30
3
flac --replay-gain
I have FLAC files that I would like to re-encode with --replay-gain. I have my Flac's organized in Artist/Album folders, so I should have no problem getting an album gain/peak per album. Do I need to first de-code the flac's to wav files and then "flac --replay-gain *.wav", or can this be accomplished by going to each Album directory and "flac -f --replay-gain *.flac"?
2006 Feb 23
7
How to set a relationship with a value from a selection list
I realize this is probably a very basic problem but I''m developing my first rails app and running into this problem. I''m trying to write a photoblog application. I have a photo table and an album table. Photo has a to-one relationship to Album. Photo.album_id => Album.id In my view for photo I have a selection list that''s populated with all the available albums. <%= select("post", "album_id", Album.find_all.collect {|a| [a.name, a.id]}, {:include_blank...
2013 May 08
1
Using koala get facebook albums photos
Hi Folks, Good day, I need to display my facebook album photos in my application. I used *Koala *for facebook API. I used this query for getting my album photos, *current_user.facebook.get_connection("me","albums")* by using this i can get only the albums details. *"I need my photos which i upload in facebook "* * * Plea...
2008 Oct 13
10
Album art - requirements
Hi, there was a thread a few months ago about album art, and how to embed it in an Ogg stream. The outcome was unconclusive, and kind of settled on the existing practice of adding a uuencoded image in a Vorbis comment, or similar. A better solution would be to embed those images as a separate stream, including hints as to what image represents (fro...
2006 Apr 25
6
Searching over multiple MySQL tables
I am racking my brain over this, probably because I only know very simple mysql functions. Basically I''ve got a few tables, ex: Albums (id,name,band_id); Bands (id,name,label_id), and Label (id,name) I want to search through both album.name, band.name, and label.name throwing all results into a variable, with no redundant info. I think what I need to be doing is setting up some foreign key relationships. I am on the right tr...
2008 Jun 02
3
Adviced way of tagging music
...performed by different artists, - some works (usually operas) are contained on multiply CDs, - it is interesting to have both date of publishing (the date the work was finished, the date it was shown for the first time) and date of recording. I want to preserve in tags info about the album from which the piece was taken but I want to have "album title" to be set to correct data. So in case of mentioned Tchaikovsky's CD I want halve of the tracks to have "album title" set to "Piano Concerto 1" and the other half "Piano Concerto 2" - howe...
2008 Feb 11
2
Replay-gain
...1 February 2008 05:04:25 Pyt wrote: > Can you elaborate on what you mean by "correctly use" ? > > On Feb 11, 2008 1:03 AM, Christopher Brown <c-b@asu.edu> wrote: > > Is there a way to correctly use the replay-gain feature on flac files > > that contain an entire album (i.e., multiple tracks with seekpoints added > > from a > > cue sheet)? As I understand it, flac generates replay-gain values for each flac file that you pass (it assumes they are each a track and that they comprise an album), along with album values. If you pass a flac file that con...
2017 May 10
4
max size for album art?
Is there any size limitation for album art? I have a user who says adding large artwork (from a scanner) is corrupting the file metadata. I don't know if this is a flac limitation, a tag lib issue, or something I'm doing. Thanks, Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://l...
2008 Oct 17
1
Album art - requirements
...away the last few days, so this partly overlaps on things that that have been mentioned in this thread. Since the consensus seems that Vorbis comment encoding is the way to go, it's a bit moot, but here it is anyway ] Following up on the possibility to tag various images as different types of album art, I thought of adding that tagging information in a Skeleton stream. Since Skeleton's purpose is to describe the set of tracks in a physical bitstream, as well as the relationship between those tracks, it is well suited to such a use. So, a possible way to encode album art would be: - a Sk...
2005 Jun 21
2
Playback + Replay Gain questions
Thanks! You've been most informative. Do the command line options vary for album and track or is the album gain computed automatically if it's done on a batch of files? You Wrote: > > there are two tags for replaygain, the 'album' tag which applies > to the whole album, and 'track' tag for each track.
2006 Jan 03
1
Passing parameters with link_to
I have following code in my controller: class AlbumsController < ApplicationController def list_by_year(year) @album_pages @albums = paginate :albums, { :per_page => 10, :conditions => ["year = ?", year] } render :action => ''list'' end end Now I w...
2010 Aug 08
1
help me
i am creating an aplication where table name albums width attributes CREATE TABLE albums ( id int(11) NOT NULL auto_increment, title varchar(255) NOT NULL default '''', artist_old varchar(255) NOT NULL default '''', release_date datetime NOT NULL default ''0000-00-00 00:00:00'', genre varchar(50) NO...
2004 Sep 10
5
new CUESHEET metadata block
--- smoerk <smoerk@gmx.de> wrote: > good idea, i'm always putting *.cue files to the directory with the > ripped audio files. but it would prefer one file per song and not one > big file for the whole cd. My vision of how the players should work is this: - make one album.flac with CUESHEET - player loads album.flac, sees CUESHEET, calculates CDDB id (or CDindex, or custom hash), looks up metadata in database - player presents album.flac as separate tracks - playlists can reference individual tracks in album.flac Josh ___________________________________________...
2007 May 12
4
help, 1 error(s) on assignment of multiparameter attributes
Hi everyone! I just started learning Ruby on Rails about a week ago for a school project, and can''t seem to find a solution for something. I have this inside the form inside of edit_albums.rhtml: <%= start_form_tag :action=>''proccess_edit_album'', :id=>@album.id %> .... Release Date: <%= datetime_select(:album, :release_date, :start_year => 1960) %><br /> .... and inside the controller: def edit_album @album = Album.find(params[...