Code Monkey home page Code Monkey logo

musicbrainz-2's Introduction

MusicBrainz

.Net data bindings for MusicBrainz XML Web Service v2.0

The search fields are identical to the online search.

Any Examples (C#):

  var anno = MusicBrainz.Search.Annotation(entity: "bdb24cb5-404b-4f60-bba4-7b730325ae47");
  var area = MusicBrainz.Search.Area("germany", type: "Country");
  var artist = MusicBrainz.Search.Artist("fred");
  var cd = MusicBrainz.Search.CdStub(title: "Doo");
  var fdb = MusicBrainz.Search.Freedb(discid: "6e108c07");
  var lab = MusicBrainz.Search.Label("Devils");
  var place = MusicBrainz.Search.Place("Studio");
  var recording = MusicBrainz.Search.Recording("Fred");
  var release = MusicBrainz.Search.Release("Schneider");
  var releaseGroup = MusicBrainz.Search.ReleaseGroup("Tenance");
  var work = MusicBrainz.Search.Work("Devils");

  // Search a CD with a Song from a specific Artist
  var rec = MusicBrainz.Search.Recording("Inheritance", artist: "Scorpions");

  foreach (var s in rec.Data)
	foreach (var r in s.Releaselist)
	{
	  if (r.Id == string.Empty) continue;
	  foreach (var a in s.Artistcredit.Where(a => a.Artist.Id != string.Empty))
	  {
		Console.WriteLine(@"Artist ID: {0} Releas ID: {1} Releas Title: {2}", a.Artist.Id, r.Id, r.Title);
		return;
	  }
	}

Any Examples (VB):

  Dim anno = MusicBrainz.Search.Annotation(entity:="bdb24cb5-404b-4f60-bba4-7b730325ae47")
  Dim area = MusicBrainz.Search.Area("germany", type:="Country")
  Dim artist = MusicBrainz.Search.Artist("fred")
  Dim cd = MusicBrainz.Search.CdStub(title:="Doo")
  Dim fdb = MusicBrainz.Search.Freedb(discid:="6e108c07")
  Dim lab = MusicBrainz.Search.Label("Devils")
  Dim place = MusicBrainz.Search.Place("Studio")
  Dim recording = MusicBrainz.Search.Recording("Fred")
  Dim release = MusicBrainz.Search.Release("Schneider")
  Dim releaseGroup = MusicBrainz.Search.ReleaseGroup("Tenance")
  Dim work = MusicBrainz.Search.Work("Devils")

  ' Search a CD with a Song from a specific Artist
  Dim rec = MusicBrainz.Search.Recording("Inheritance", artist:="Scorpions")

  For Each s In rec.Data
    For Each r In s.Releaselist
	  If r.Id = String.Empty Then Continue For
	  For Each a In s.Artistcredit
		If a.Artist.Id <> String.Empty Then
		  Console.WriteLine("Artist ID: {0} Releas ID: {1} Releas Title: {2}", a.Artist.Id, r.Id, r.Title)
		  Return
		End If
	  Next
	Next
  Next

musicbrainz-2's People

Contributors

biggranu avatar picrap avatar

Watchers

Delor Tshimanga Kazadi avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.